Multiplayer Event System component reference
Explore the properties that limit UI input to the part of the UI that belongs to one player in a local multiplayer application.
The Multiplayer Event System component replaces the Event System component. It has the same properties and adds Player Root. For more information, refer to Introduction to multiplayer UI input.
Multiplayer Event System component properties
The Multiplayer Event System component contains the following properties.
| Property | Description |
|---|---|
| First Selected | Sets the GameObject that the UI Input Module selects when it becomes active, if no GameObject is selected. Keyboard and gamepad navigation starts from this GameObject. Set it to a GameObject under Player Root. |
| Send Navigation Events | Enables navigation events. When enabled, the UI Input Module sends move, submit, and cancel events to the selected GameObject, for example when a player presses a direction on a gamepad. When disabled, keyboards and gamepads can't navigate the UI. |
| Drag Threshold | Sets how far, in pixels, the pointer must move before a drag starts. |
| Player Root | Sets the GameObject whose descendants belong to this player. The component processes mouse and navigation events only for Player Root and its descendants, so keyboard and gamepad navigation stays within this part of the hierarchy. If you don't set Player Root, the component processes events for all GameObjects. |
| Add Default Input Modules | Adds an input module to the GameObject. For more information, refer to Introduction to the UI Input Module. This button is available only when the GameObject has no input module. |