Working with Unity New Input System

Scripting with the Action Maps

Converting Action Map Into Usable Script:

As you might have figured out, the Action Map work as a separate entity from the release of other Unity functions. In order to be able to script with the Action Map Inputs, we first need to convert the Action Maps into a an scriptable class.

We must save our progress within the Action Input before we do anything else.

Applying Action Map Input into your Scripts:

Now that we have access to the Action Map Input, we can finally start applying them into our scripts. We can start by working with the basic button inputs. For this demonstration I decided to create an new script called “Player_Input”.

  1. We then need to enable that Action Map
  2. Finally we need to assign what type of Action we want to trigger (aka, bark, jump, move etc.) to a toggle action (pressed, released, hold etc.)

--

--

A Designer, an Illustrator and a massive tech geek aspiring to become a professional Unity Developer.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Simon Truong

A Designer, an Illustrator and a massive tech geek aspiring to become a professional Unity Developer.