Class UnityConnectSession | WebGL Publisher | 3.0.0
docs.unity3d.com
    Show / Hide Table of Contents

    Class UnityConnectSession

    Bridge to the internal UnityConnectSession API

    Inheritance
    Object
    UnityConnectSession
    Namespace: Unity.Connect.Share.Editor
    Syntax
    public class UnityConnectSession

    Properties

    instance

    Instance of UnityConnectSession

    Declaration
    public static UnityConnectSession instance { get; }
    Property Value
    Type Description
    UnityConnectSession

    Methods

    GetAccessToken()

    Returns the access token for the user, if logged in

    Declaration
    public string GetAccessToken()
    Returns
    Type Description
    String

    GetEnvironment()

    Gets the environment in which the app is run

    Declaration
    public string GetEnvironment()
    Returns
    Type Description
    String

    OpenAuthorizedURLInWebBrowser(String)

    NOTE no-op if user is not logged in

    Declaration
    public static void OpenAuthorizedURLInWebBrowser(string url)
    Parameters
    Type Name Description
    String url

    ShowLogin()

    Shows the Unity HUB login form

    Declaration
    public void ShowLogin()
    Back to top
    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