Wires Unity 6.3 LTS player input with the Input System package: .inputactions assets, action maps, PlayerInput and control schemes. Use when input does nothing or fires under a menu, FindAction returns null, the old Input class throws, or Input.GetAxis code needs porting. Not for engine-neutral buffering, remapping or deadzones (`input-systems`) or jump feel (`platformer`).
Ships in gamedev. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Read input through the Input System package (com.unity.inputsystem; Unity 6.3 LTS projects
use 1.20.x), which replaces the legacy Input.GetAxis/Input.GetKey Input Manager. Targets
Unity 6.3 LTS (6000.3).
PlayerInput
component; reading a Vector2 from a stick or WASD; one set of actions for gamepad,
keyboard and touch; the Unity rebinding API.Packages/manifest.json lists com.unity.inputsystem, or the project has an
*.inputactions asset.When not to use: input architecture across engines (buffering, remapping screens,
dead-zone design) → input-systems; moving the character once you have the vector →
unity-physics / unity-csharp-scripting.
ProjectSettings/ProjectSettings.asset has
activeInputHandler: 0 (old Input Manager only), 1 (Input System only) or 2 (both).
The package receives nothing at 0, and any leftover Input.GetAxis call throws at 1.
Grep Assets/ for Input.Get before choosing 1; changing the value restarts the Editor,
so tell the user.Assets/InputSystem_Actions.inputactions, assigned as project-wide actions, with a
Player map (Move, Look, Attack, Interact, Crouch, Jump, Previous, Next,
Sprint) and a UI map. Add to it rather than creating a second asset..inputactions file is JSON:
maps[].actions[] (name, type, expectedControlType) and maps[].bindings[]
(path such as <Keyboard>/space, action, groups for control schemes, isComposite
and isPartOfComposite for WASD). Give each new action and binding a fresh id GUID like
the existing entries, keep the file valid JSON, and re-read it after writing.InputSystem.actions.FindAction("Player/Move"): no
asset reference to wire and the actions start enabled. The default for new code.PlayerInput component when the project already uses it, or for local co-op
(PlayerInputManager gives each joining device its own player).InputActionReference or a separate asset when a tool or system needs its own
actions; you Enable() and Disable() them yourself.using UnityEngine;
using UnityEngine.InputSystem;
public class PlayerControls : MonoBehaviour
{
private InputAction _move, _jump;
private void Awake()
{
_move = InputSystem.actions.FindAction("Player/Move");
_jump = InputSystem.actions.FindAction("Player/Jump");
}
private void Update()
{
Vector2 move = _move.ReadValue<Vector2>(); // continuous value
if (_jump.WasPressedThisFrame()) { /* jump */ } // edge, true for one frame
}
}
private InputActionMap _player, _ui;
private void Awake()
{
_player = InputSystem.actions.FindActionMap("Player");
_ui = InputSystem.actions.FindActionMap("UI");
}
private void Start() => _ui.Disable(); // project-wide actions enable every map at startup
private void OnEnable() => _player.FindAction("Attack").performed += OnAttack;
private void OnDisable() => _player.FindAction("Attack").performed -= OnAttack;
private void OnAttack(InputAction.CallbackContext ctx) { /* attack once per press */ }
public void OpenMenu() { _player.Disable(); _ui.Enable(); }
public void CloseMenu() { _ui.Disable(); _player.Enable(); }
PlayerInput with Send MessagesPlayerInput with Behavior = Send Messages calls On<ActionName>(InputValue) on scripts on
the same GameObject: void OnMove(InputValue v) => _move = v.Get<Vector2>();,
void OnJump(InputValue v) { if (v.isPressed) Jump(); }. Broadcast Messages also reaches
children; Invoke Unity Events and Invoke C# Events need no naming convention.
No Editor needed: parse the .inputactions JSON and confirm every name your code passes
to FindAction/FindActionMap exists (for "Player/Jump", a map Player with an action
Jump), and that composites have all their parts. Confirm activeInputHandler matches
the code.
Tests: the package's InputTestFixture adds virtual devices and presses controls from
code. List com.unity.inputsystem under "testables" in Packages/manifest.json and add
Unity.InputSystem and Unity.InputSystem.TestFramework to the test .asmdef (assembly
setup is in unity-csharp-scripting):
using NUnit.Framework;
using UnityEngine.InputSystem;
public class JumpInputTests : InputTestFixture
{
[Test]
public void SpaceTriggersJump()
{
var keyboard = InputSystem.AddDevice<Keyboard>();
var jump = new InputAction("Jump", InputActionType.Button, "<Keyboard>/space");
int performed = 0;
jump.performed += _ => performed++;
jump.Enable();
Press(keyboard.spaceKey);
Assert.That(performed, Is.EqualTo(1));
}
}
Unity CLI with the game running: unity command runtime simulate_key injects a key
press (for example Space) through the Input System into the running app, if
unity command --query simulate lists it for your target. Read the effect back with
unity command script eval, and check the flags with --help.
Hardware: ask the user to press the control and report what the Input Debugger (Window > Analysis > Input Debugger) shows for the device and action.
activeInputHandler is 0, or the action or map was never enabled.
Project-wide actions and PlayerInput's default map start enabled; actions from any other
asset do not.PlayerInput uses that asset. Disable the maps you do not want in
Start (pattern 2).FindAction returns null. The name or Map/Action path does not exist in that asset,
or you edited a different asset than the one assigned as project-wide actions (Project
Settings > Input System Package).InvalidOperationException about the UnityEngine.Input class. Old Input.GetAxis/
GetKey code runs while activeInputHandler is 1. Port it, or set 2 while you migrate.ReadValue. Presses are edges. Use performed or
WasPressedThisFrame(), and read actions in Update: WasPressedThisFrame in
FixedUpdate misses presses or sees them twice.PlayerInput; Broadcast Messages reaches children.OnEnable subscribed again without an OnDisable unsubscribe.PlayerInput allows, or a 2D Vector composite is missing a part.references/rebinding.md when adding "press a key to rebind", saving and loading
binding overrides, or split-screen local multiplayer with PlayerInputManager.input-systems: engine-neutral input architecture, buffering and remapping design.unity-csharp-scripting: the MonoBehaviour around these handlers and test assemblies.unity-physics: applying the input vector to a rigidbody.Last verified: 2026-11-11.
com.unity.inputsystem 1.20.1 (released 2026-10-05, minimum Unity 6000.0) is the latest
version in the Unity package registry (https://packages.unity.com/com.unity.inputsystem).
The project-wide actions template, activeInputHandler values 0/1/2 and InputTestFixture
were checked in the 1.20.1 package source and its Documentation~ pages (Testing,
set-up-test-assemblies, write-tests).runtime simulate_key is a com.unity.pipeline 1.0.0-pre.1 command (pre-release):
https://docs.unity3d.com/Packages/[email protected]/manual/index.htmlWhat SKILL.md sets; muted values are Claude Code's defaults
/gamedev:unity-input-systemfrom gamedev
npx claudepluginhub cirobarone78/games-skill --plugin gamedevOther plugins' skills for the same job
80 skills in this plugin
/ai-behavior-trees-utility-aiEngine-neutral behavior tree and utility AI code for NPCs in any language: Blackboard, reactive composites, decorators and response-curve scoring. Use when an enemy keeps chasing after losing sight, restarts its action every frame or flip-flops between choices. Not for FSMs, steering or pathfinding (`game-ai`) or Unreal BT, EQS and StateTree (`unreal-behavior-trees`).
/audio-designEngine-neutral game audio technique: bus layout, volume sliders in decibels, loudness, ducking music under dialogue, adaptive music and SFX variation, with Godot, Unity and FMOD/Wwise mappings. Use when mixing a game, making music react to combat, fixing repetitive footsteps or beat sync, or a mix that clips or pumps. Not for the Godot audio API (`godot-audio`).
/