Player Input

The Player Input is the component in charge of the configuration of every possible input, as well as activating the correct reactions:

The Player Input component has no editable properties; nevertheless, let's have a look at the inputs it considers:

Horizontal axis Moves left or right.
Vertical axis Moves forward or backward.
Mouse X axis Rotates the camera left or right, considering the player as the pivot.
Mouse Y axis Rotates the camera up or down, considering the player as the pivot.
Jump button Makes the character jump.
Fire1 button Makes the character attack.
Pause button Pauses the game.

 

We still have ...

Get Hands-On Game Development without Coding now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.