Zum Inhalt springen
Kitbay
Skill

unity-input-system

Apache-2.0Aktualisiert am 10. Nov. 20268.242GitHub-Sterne

A skill from the gamedev-skills collection for wiring player input in Unity 6.3 LTS with the Input System package, version 1.20.

Was der Skill vermittelt

A skill from the gamedev-skills collection for wiring player input in Unity 6.3 LTS with the Input System package, version 1.20. The agent first checks which input handling the project uses, reuses the project-wide input actions asset and edits its JSON directly when the editor is closed, giving new entries fresh ids. It then picks a way to read input: project-wide actions, a PlayerInput component for existing projects or local co-op, or a separate asset enabled by hand, and switches action maps between gameplay and menus. It verifies the names used in code against the asset, writes tests with a virtual keyboard and lists the usual reasons input fires twice or not at all.

Funktionen

  • Set up action maps and control schemes
  • Port old Input.GetAxis code
  • Switch between gameplay and menu input
  • Test input with a virtual keyboard