13 lines
1.1 KiB
Markdown
13 lines
1.1 KiB
Markdown
---
|
|
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](https://docs.unity3d.com/Manual/UsingComponents.html) 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](action-assets.md) 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](select-notification-behavior.md) section further down for details.<br/><br/><br/><br/>
|