docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Respond to sign-in events

    When attempting to access an account on some platforms, such as the default account, user input is often requested. You can simulate this behavior with the Play Mode Controls window.

    *Example of the Account Controls in the Play Mode Controls window

    Example of the Account Controls in the Play Mode Controls window

    Selecting an account as Primary will automatically sign the account in.

    Note

    You might be able to sign in multiple accounts depending on the platform you're targeting. You can use Behaviors to simulate different platform capabilities. For more information, refer to Control Editor Behaviors.

    The signed in state for account is persistent when entering and exiting Play mode. Some platforms will select an account that's already signed in when calling for the primary account. If you want to minimize interaction with this window while testing your game in the Unity Editor, configure the signed-in and primary account ahead-of-time using the Play Mode Controls window.

    Additional resources

    • IPrimaryAccountSystem.Establish
    • Play Mode Controls window reference
    In This Article
    Back to top
    Copyright © 2025 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)