docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Enum PlayerJoinBehavior

    Determines how PlayerInputManager joins new players.

    Namespace: UnityEngine.InputSystem
    Assembly: Unity.InputSystem.dll
    Syntax
    public enum PlayerJoinBehavior

    Fields

    Name Description
    JoinPlayersManually

    Do not join players automatically. Call JoinPlayerFromUI() or JoinPlayerFromAction(CallbackContext) explicitly in order to join new players. Alternatively, just create GameObjects with PlayerInput components directly and they will be joined automatically.

    JoinPlayersWhenButtonIsPressed

    Listen for button presses on devices that are not paired to any player. If they occur and joining is allowed, join a new player using the device the button was pressed on.

    JoinPlayersWhenJoinActionIsTriggered
    See Also
    PlayerInputManager
    joinBehavior
    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)