← All docs

Input System

Claunity can create and configure Unity's Input System assets — action maps, actions, and bindings for any device. It works with the new Input System package (com.unity.inputsystem).

Requires Input System package

The Input System must be installed first. If it's not in your project, ask Claunity: "Install the Input System package".


Input Action Assets

Create an input asset

"Create an Input Action Asset called "PlayerControls" in Assets/Input"

Add an action map

"Add a "Player" action map to the PlayerControls asset"

Add a button action

"Add a "Jump" action to the Player map, bound to Space on keyboard and South button on gamepad"

Add a movement action

"Add a "Move" action to the Player map with WASD keyboard composite and left stick on gamepad"

Read the asset structure

"Show me what actions and bindings are in the PlayerControls asset"

Full setups

Complete player input

"Create a PlayerControls input asset with Move (WASD + left stick), Jump (Space + gamepad south), and Attack (left mouse + gamepad west) actions"

UI input map

"Add a "UI" action map to PlayerControls with Navigate, Submit, and Cancel actions"


Common binding paths

Some common device paths you can mention by name:

  • Keyboard — Space, W, A, S, D, Shift, Ctrl, E, F, Escape
  • Gamepad — left stick, right stick, south button, north button, east button, west button, left trigger, right trigger
  • Mouse — left button, right button, scroll wheel, delta (movement)