New Input System —Creating Your First Action!

addam davis
3 min readDec 14, 2023

Objective: Learn and understand how to create Actions!

Now that we know the basic overview of the Map Editor, we can now create our first action. When you create an Action Map Unity will automatically create an action.

That’s great, however I would like to prefer to have complete control over the actions so I’m going to delete this and create our own. You can delete the action by right clicking and selecting delete.

Now we can come in a create our own Actions. You can either right click in the Actions section and Add Action or simply click the + button in the header of the Action collum.

Now, what kind of action do you want to create? For this tutorial we are going to do a simple button action. Let’s call it shooting.

When the player wants to shoot, they can press the corresponding button or buttons. Let’s choose the Space key for this binding. Select Binding and in the Action Properties you will see a drop-down menu for Path. In this path you can navigate you way to the space key.

Alternatively you can select the listen button then press the button on the keyboard you want to be assigned.

Same result, it’s all up to developer preference. You can also create more than one binding per action. Let’s also make the “T” key shoot.

That is all there is to it to creating Actions. You need to save the Asset. You could select Auto-Save, however enabling that will mean Unity will need to compile every time you make a modification to your actions.

Don’t be afraid to experiment with your actions and I’ll see you in the next tutorial!

--

--