docs.unity3d.com
    Show / Hide Table of Contents

    Enum PlayerJoinBehavior

    Determines how PlayerInputManager joins new players.

    Namespace: UnityEngine.InputSystem
    Syntax
    public enum PlayerJoinBehavior : int

    Fields

    Name Description Value
    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.

    0
    JoinPlayersWhenJoinActionIsTriggered 1
    JoinPlayersManually

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

    2
    In This Article
    • Fields
    Back to top
    Terms of use
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023