Posted on

New Input System in Unity 2020 – Player Input Component

In this video, we will be going over the new Player Input Component that comes with the new Input system for Unity. This component is used to bridge that gap between the input action asset and you c# scripts.

First you need to have a player object that you wish to control with your input action asset. You will then need to add a player input component to this object. Next you will need to add you input action asset to this player input component. Now we will change the behavior to Unity events. At this point you will need to have a script attached to your player object that contains some public function, one for each action in you Action maps. Finally you will need to set the Unity Events to the different public function in your script.