Class XRLoader
XR Loader abstract class used as a base class for specific provider implementations. Providers should implement subclasses of this to provide specific initialization and management implementations that make sense for their supported scenarios and needs.
Inheritance
Namespace: UnityEngine.XR.Management
Syntax
public abstract class XRLoader : ScriptableObject
Methods
Deinitialize()
Ask loader to deinitialize all initialized subsystems.
Declaration
public virtual bool Deinitialize()
Returns
Type | Description |
---|---|
System.Boolean | Whether or not deinitialization succeeded. |
GetLoadedSubsystem<T>()
Declaration
public abstract T GetLoadedSubsystem<T>()
where T : class, ISubsystem
Returns
Type | Description |
---|---|
T |
Type Parameters
Name | Description |
---|---|
T |
Initialize()
Initialize the loader. This should initialize all subsystems to support the desired runtime setup this loader represents.
Declaration
public virtual bool Initialize()
Returns
Type | Description |
---|---|
System.Boolean | Whether or not initialization succeeded. |
Start()
Ask loader to start all initialized subsystems.
Declaration
public virtual bool Start()
Returns
Type | Description |
---|---|
System.Boolean | Whether or not all subsystems were successfully started. |
Stop()
Ask loader to stop all initialized subsystems.
Declaration
public virtual bool Stop()
Returns
Type | Description |
---|---|
System.Boolean | Whether or not all subsystems were successfully stopped. |