Skip to content
SkillModel-led2,116 tokens in use

unity-input-system

Helps an agent wire Unity 6.3 player input with the Input System package: .inputactions assets, action maps, PlayerInput, control schemes and rebinding.

9,684 stars on the repository Apache License 2.0gamedev-skills/awesome-gamedev-agent-skills · skills/unity/unity-input-system
npx skills add gamedev-skills/awesome-gamedev-agent-skills
View source

Install command as written in the repository's README

Skill label

measured from its files

What installing unity-input-system costs

87tokens idle
2,116tokens in use
2,885tokens, up to

Idle is what sits in context while the skill is installed. In use is its instructions, loaded when it runs. Up to adds the files its instructions link. Counts are approximate, made offline with cl100k_base.

Model dependence Model-led

Script-ledMixedModel-led

Mostly instructions, so how well it works depends on the model that follows them.

This describes the skill's structure, how much of it is scripts. It does not say how well it works.

Touches

Nothing detected: no shell, network, file writes, git or credentials in its files.

Declared tags come from the skill's frontmatter; detected ones from its scripts, its code blocks and the commands it names in inline code. This is detected, not audited.

How it scores

Quality

How well the skill is written, counted from its own files: its frontmatter, its steps, examples, stated output and constraints, its size and whether every file it ships is one it names.How we score it →
Excellent
  • Frontmatter12/15
  • Structure23/25
  • Examples15/15
  • Output15/15
  • Size15/15
  • Resources15/15

Security

Starts at 100 and loses points for each thing in the skill's files that a reader should look at first.How we score it →
Excellent

No findings.

Repository health

Pre-computed score based on development activity, maintenance, community, maturity, and trend momentum.How we score it →
Good
  • Development activity92
  • Maintenance96
  • Community60
  • Maturity24
  • Momentum40

This skill helps an agent read player input in Unity through the Input System package, which replaces the legacy Input class. It checks the Active Input Handling value in the project file, reuses the project-wide actions asset, and edits an .inputactions file as JSON when the Editor is closed.

It includes patterns for polling actions, callbacks with action map switching and PlayerInput messages, a test using InputTestFixture, and a reference on interactive rebinding, saving overrides and local multiplayer. A gotchas list covers no input, FindAction returning null and menus that receive gameplay input.

What You Get

  • A six-step workflow from reading the input handler setting to choosing how code reads actions
  • Three C# patterns: polled project-wide actions, callbacks with map switching and PlayerInput Send Messages
  • A verification list that checks action names against the JSON file and a test example using virtual devices
  • A reference on press-a-key rebinding, saving binding overrides and PlayerInputManager co-op

Common Use Cases

  • Finding why input does nothing after switching to the Input System
  • Fixing FindAction returning null because a name or map path is wrong
  • Stopping gameplay actions from firing while a menu is open
  • Porting Input.GetAxis code to action-based input

What Makes It Unique

The skill reads Unity’s settings and assets as files: it checks the input handler value in the project settings and edits the .inputactions JSON, with fresh IDs, when the Editor is closed. It also names version-specific behavior such as project-wide actions enabling every map at startup, which explains menus receiving gameplay input.

Under The Hood

The agent loads the SKILL.md and, for rebinding or local co-op, one reference file. It reads project settings, package files and the .inputactions JSON, searches scripts for legacy Input calls and edits C# and JSON files. When the Unity command line tool and a running game are available it can inject a key press and read the effect back with an evaluate command; that tool is a pre-release package. Tests run through Unity’s test runner. The rebinding example stores overrides with player preferences. Nothing is fetched from the web during normal use.

Join founders building with open source

Opinionated takes, migration guides, cost-saving tips, and insights from the open source ecosystem.

Subscribe on SubstackJoin 750+ subscribers