Class VisionOSLoader
Manages the lifecycle of VisionOS subsystems.
Inherited Members
Namespace: UnityEngine.XR.VisionOS
Assembly: Unity.XR.VisionOS.dll
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 |
environmentProbeSubsystem
The XREnvironmentProbeSubsystem whose lifecycle is managed by this loader.
Declaration
public XREnvironmentProbeSubsystem environmentProbeSubsystem { get; }
Property Value
Type | Description |
---|---|
XREnvironmentProbeSubsystem |
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
CreateHandSubsystem()
Creates the XRHandSubsystem and its associated subsystem updater.
Declaration
public void CreateHandSubsystem()
Deinitialize()
Destroys each subsystem.
Declaration
public override bool Deinitialize()
Returns
Type | Description |
---|---|
bool | Always returns |
Overrides
DestroyHandSubsystem()
Stops the subsystem updater and destroys the XRHandSubsystem.
Declaration
public void DestroyHandSubsystem()
Initialize()
Initializes the loader.
Declaration
public override bool Initialize()
Returns
Type | Description |
---|---|
bool |
|
Overrides
Start()
This method does nothing for managed subsystems. Subsystems must be started individually.
Declaration
public override bool Start()
Returns
Type | Description |
---|---|
bool | Returns |
Overrides
StartHandSubsystem()
Starts the XRHandSubsystem and its associated subsystem updater.
Declaration
public void StartHandSubsystem()
Stop()
This method does nothing for managed subsystems. Subsystems must be stopped individually.
Declaration
public override bool Stop()
Returns
Type | Description |
---|---|
bool | Returns |
Overrides
StopHandSubsystem()
Stops the XRHandSubsystem and its associated subsystem updater.
Declaration
public void StopHandSubsystem()