本文へスキップ
Kitbay
スキル

unity-input-system

Apache-2.02026年11月10日 更新8,242GitHubスター

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

スキルの内容

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.

できること

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