docs.unity3d.com
    Show / Hide Table of Contents

    Class VisionOSLoader

    Manages the lifecycle of VisionOS subsystems.

    Inheritance
    Object
    XRLoader
    XRLoaderHelper
    VisionOSLoader
    Inherited Members
    XRLoaderHelper.m_SubsystemInstanceMap
    XRLoaderHelper.GetLoadedSubsystem<T>()
    XRLoaderHelper.StartSubsystem<T>()
    XRLoaderHelper.StopSubsystem<T>()
    XRLoaderHelper.DestroySubsystem<T>()
    XRLoaderHelper.CreateSubsystem<TDescriptor, TSubsystem>(List<TDescriptor>, String)
    XRLoaderHelper.CreateIntegratedSubsystem<TDescriptor, TSubsystem>(List<TDescriptor>, String)
    XRLoaderHelper.CreateStandaloneSubsystem<TDescriptor, TSubsystem>(List<TDescriptor>, String)
    UnityEngine.XR.Management.XRLoaderHelper.WasAssignedToBuildTarget(UnityEditor.BuildTargetGroup)
    UnityEngine.XR.Management.XRLoaderHelper.WasUnassignedFromBuildTarget(UnityEditor.BuildTargetGroup)
    XRLoader.GetSupportedGraphicsDeviceTypes(Boolean)
    Namespace: UnityEngine.XR.VisionOS
    Syntax
    public class VisionOSLoader : XRLoaderHelper

    Properties

    anchorSubsystem

    The XRAnchorSubsystem whose lifecycle is managed by this loader.

    Declaration
    public XRAnchorSubsystem anchorSubsystem { get; }
    Property Value
    Type Description
    XRAnchorSubsystem

    imageTrackingSubsystem

    The XRImageTrackingSubsystem whose lifecycle is managed by this loader.

    Declaration
    public XRImageTrackingSubsystem imageTrackingSubsystem { get; }
    Property Value
    Type Description
    XRImageTrackingSubsystem

    inputSubsystem

    The XRInputSubsystem whose lifecycle is managed by this loader.

    Declaration
    public XRInputSubsystem inputSubsystem { get; }
    Property Value
    Type Description
    XRInputSubsystem

    meshSubsystem

    The XRMeshSubsystem whose lifecycle is managed by this loader.

    Declaration
    public XRMeshSubsystem meshSubsystem { get; }
    Property Value
    Type Description
    XRMeshSubsystem

    planeSubsystem

    The XRPlaneSubsystem whose lifecycle is managed by this loader.

    Declaration
    public XRPlaneSubsystem planeSubsystem { get; }
    Property Value
    Type Description
    XRPlaneSubsystem

    sessionSubsystem

    The XRSessionSubsystem whose lifecycle is managed by this loader.

    Declaration
    public XRSessionSubsystem sessionSubsystem { get; }
    Property Value
    Type Description
    XRSessionSubsystem

    Methods

    Deinitialize()

    Destroys each subsystem.

    Declaration
    public override bool Deinitialize()
    Returns
    Type Description
    Boolean

    Always returns true.

    Overrides
    XRLoaderHelper.Deinitialize()

    Initialize()

    Initializes the loader.

    Declaration
    public override bool Initialize()
    Returns
    Type Description
    Boolean

    True if the session subsystem was successfully created, otherwise false.

    Overrides
    XRLoader.Initialize()

    Start()

    This method does nothing for managed subsystems. Subsystems must be started individually.

    Declaration
    public override bool Start()
    Returns
    Type Description
    Boolean

    Returns true on iOS. Returns false otherwise.

    Overrides
    XRLoader.Start()

    Stop()

    This method does nothing for managed subsystems. Subsystems must be stopped individually.

    Declaration
    public override bool Stop()
    Returns
    Type Description
    Boolean

    Returns true on iOS. Returns false otherwise.

    Overrides
    XRLoader.Stop()
    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