Sitemap

New Input System — Rapid Prototyping!

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…?”

Press enter or click to view image in full size

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

Press enter or click to view image in full size

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

Press enter or click to view image in full size

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.

Press enter or click to view image in full size
Press enter or click to view image in full size

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!

--

--