docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class IUsesSessionControlMethods

    Inheritance
    object
    IUsesSessionControlMethods
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Unity.MARS.Providers
    Assembly: Unity.MARS.Interfaces.dll
    Syntax
    [MovedFrom("Unity.MARS")]
    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
    bool

    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
    bool

    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
    bool

    True if the session exists and is running, false otherwise

    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)