Class MultiplayerEventSystem
A modified EventSystem class, which allows multiple players to have their own instances of a UI, each with it's own selection.
Inheritance
System.Object
MultiplayerEventSystem
Namespace: UnityEngine.InputSystem.UI
Syntax
public class MultiplayerEventSystem : EventSystem
Remarks
You can use the playerRoot
property on MultiPlayerEventSystem to specify a part of the hierarchy belonging to the current player.
Mouse selection will ignore any game objects not within this hierarchy. For gamepad/keyboard selection, you need to make sure that
the navigation links stay within the player's hierarchy.
Properties
playerRoot
Declaration
public GameObject playerRoot { get; set; }
Property Value
Type | Description |
---|---|
GameObject |
Methods
Update()
Declaration
protected override void Update()