The Player Input component
The Player Input component provides two related but separate features which can be useful in common game scenarios. These are:
Configuring how actions map to methods or callbacks in the script that controls your player.
Handling local multiplayer scenarios such as player lobbies, device filtering, and screen-splitting.
| Topic | Description |
|---|---|
| About the Player Input Component | Represent the connection between a player's associated device, actions, and methods or callbacks. |
| Get started with the Player Input component | Assign your action asset and set up action responses. |
| Select a notification behavior | Use the Behavior property to determine how a PlayerInput component notifies game code when something related to the player has occurred. |
| Configure Unity events | Learn about properties to configure PlayerInput. |
| Device Assignments | Force two PlayerInput components for the same Devices. |
| Debug Player Input Component | Learn about the Debug section of the Player Input component. |
| Use PlayerInput Component with UI | Set up the PlayerInput component to work with an InputSystemUIInputModule to drive the UI system. |
| Local multiplayer scenarios | Implement local multiplayer features, such as device filtering, and screen-splitting. |