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.

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

Richard Morgan
Richard Morgan

Written by Richard Morgan

Unity developer interested in AI integrations.

No responses yet

Write a response