Unity Input System: Movement

Simple walk and run movement system using Unity’s new input system.
Install Input System from Package Manager
Variable assignment in PlayerInput script.
Enabling PlayerInputActions in PlayerInput script.
Methods used to define the Walk & Run performed and canceled actions.
void Update method in PlayerInput script.
Movement method within the PlayerInput script.

--

--

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