New Input System — Rapid Prototyping!

addam davis
2 min readDec 18, 2023

--

Objective: Understand the new Input System’s way of rapid prototyping.

Depending on how long you have used Unity, you may be familiar with the old input system where we would use ‘GetKeyDown’ or ‘GetKeyUp’ etc. With the roll out of the new Input System we can still use similar coding for rapid prototyping.

In the new Input System documentation there is a section called “How do I…?”

Inside here you can see that Unity had a new check for if the space key was pressed.

We can easily throw this into our player and do a debug log call in the Update method as an if statement.

This is rapid prototyping; so we could use our jump formula from the previous tutorial and have our player jump without the use of the Action Map.

So don’t be afraid of rapid prototyping. You can always come back and create your action map and assign the inputs accordingly. I’ll see you in the next tutorial!

--

--

No responses yet