Skip to content

Latest commit

 

History

History
12 lines (9 loc) · 1.11 KB

File metadata and controls

12 lines (9 loc) · 1.11 KB
uid input-system-get-started-player-input-component

Get started with the Player Input component

To get started using the Player Input component, use the following steps:

  1. Add a Player Input component to a GameObject. This would usually be the GameObject that represents the player in your game.
  2. Assign your action asset to the Actions field. This is usually the default project-wide action asset named "InputSystem_Actions" Currently, when using project-wide actions all the action maps are enabled by default. It is advisible to manually disable them and manually enable the default map that Player Input during Start().
  3. Set up Action responses, by selecting a Behavior type from the Behavior menu. The Behavior type you select affects how you should implement the methods that handle your Action responses. Refer to the notification behaviors section further down for details.

    PlayerInput Notification Behavior