docs.unity.cn
    Show / Hide Table of Contents

    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
    Object
    MultiplayerEventSystem
    Namespace: UnityEngine.InputSystem.UI
    Syntax
    public class MultiplayerEventSystem : EventSystem
    Remarks

    You can use the playerRoot property 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()
    Back to top Copyright © 2021 Unity Technologies
    Generated by DocFX
    on Tuesday, November 2, 2021
    Terms of use