Creating an Action Map with Unity

Richard Morgan
Aug 16, 2022

--

Let’s create an action map for our dog. Here are the inputs:
Bark Action (Space key)
Walk Action (WASD keys)
Run Action (Left Shift held down for more than 1 second)
Die Action (D + F keys at the same time)

The Bark Action is a button:

And it’s bound to the Space key:

Walk is a Value Action:

Bound to a 2D Vector:

Run is a Value Action:

With a Hold Interaction and a Hold Time of 1:

Die is a Button:

with a Composite One Modifier:

Now the Actions have been mapped and applied to the Input System delegate and ready to use.

--

--