docs.unity3d.com
    显示 / 隐藏目录

    Class IUsesSessionControlMethods

    Inheritance
    Object
    IUsesSessionControlMethods
    Namespace: Unity.MARS
    Syntax
    public static class IUsesSessionControlMethods

    Methods

    CreateSession(IUsesSessionControl)

    Create a new MR Session. If the session has been created, this does nothing.

    Declaration
    public static void CreateSession(this IUsesSessionControl obj)
    Parameters
    Type Name Description
    IUsesSessionControl obj

    DestroySession(IUsesSessionControl)

    Pauses the MR Session. If a session has been paused, this does nothing.

    Declaration
    public static void DestroySession(this IUsesSessionControl obj)
    Parameters
    Type Name Description
    IUsesSessionControl obj

    PauseSession(IUsesSessionControl)

    Resumes the MR Session. If a session has not has been paused, this does nothing.

    Declaration
    public static void PauseSession(this IUsesSessionControl obj)
    Parameters
    Type Name Description
    IUsesSessionControl obj

    ResetSession(IUsesSessionControl)

    Resets the MR Session. This will trigger removal events

    Declaration
    public static void ResetSession(this IUsesSessionControl obj)
    Parameters
    Type Name Description
    IUsesSessionControl obj

    ResumeSession(IUsesSessionControl)

    Create a new MR Session. If the session has been created, this does nothing.

    Declaration
    public static void ResumeSession(this IUsesSessionControl obj)
    Parameters
    Type Name Description
    IUsesSessionControl obj

    SessionExists(IUsesSessionControl)

    Check if the session exists, regardless of whether it is running

    Declaration
    public static bool SessionExists(this IUsesSessionControl obj)
    Parameters
    Type Name Description
    IUsesSessionControl obj
    Returns
    Type Description
    Boolean

    True if the session exists, false otherwise

    SessionReady(IUsesSessionControl)

    Check if the session is ready

    Declaration
    public static bool SessionReady(this IUsesSessionControl obj)
    Parameters
    Type Name Description
    IUsesSessionControl obj
    Returns
    Type Description
    Boolean

    True if the session is ready, false otherwise

    SessionRunning(IUsesSessionControl)

    Check if the session is running. If the session does not exist, returns false

    Declaration
    public static bool SessionRunning(this IUsesSessionControl obj)
    Parameters
    Type Name Description
    IUsesSessionControl obj
    Returns
    Type Description
    Boolean

    True if the session exists and is running, false otherwise

    返回到顶部
    Copyright © 2023 Unity Technologies — 商标和使用条款
    • 法律条款
    • 隐私政策
    • Cookie
    • 不要出售或分享我的个人信息
    • Your Privacy Choices (Cookie Settings)