Creating Your First Action

Simon Pham
2 min readJan 4, 2024

--

When you create a new Action Map, Unity will automatically create an Action for you.

Let’s right-click the action and delete it and create a new one from scratch. To create a new action, click the plus icon under the Actions column and name it “Fire”.

You can see that Unity will create a Binding for you by default, we can simply delete it. Unity offers 3 types of Action: Value, Button and Pass Through. For this simple Fire action, I’m just gonna go with Button.

Next, we need to specify the key or keys to trigger this Fire action. To do that, click the plus icon under the Fire action and select “Add Binding” and select a Path to the key that you want to use.

For this action, I want to use the Space key. There are 2 ways to do this, you can either find the Space key under the Keyboard option or you can click the Listen button and press the Space key to quickly find it.

Method 1: Find the Space key under the Keyboard option
Method 2: Click the “Listen” button and press the Space key

I’m gonna create a T key binding for this action:

Note: remember to save your settings by clicking the “Save Asset” button.

--

--

No responses yet