Class OculusLoader
Implements
Inherited Members
Namespace: Unity.XR.Oculus
Assembly: Unity.XR.Oculus.dll
Syntax
public class OculusLoader : XRLoaderHelper, IXRLoaderPreInit
Properties
displaySubsystem
Declaration
public XRDisplaySubsystem displaySubsystem { get; }
Property Value
Type | Description |
---|---|
XRDisplay |
inputSubsystem
Declaration
public XRInputSubsystem inputSubsystem { get; }
Property Value
Type | Description |
---|---|
XRInput |
Methods
Deinitialize()
Override of Unity
If you override this method in your subclass, you must call the base implementation to allow the instance map tp be cleaned up correctly.
Declaration
public override bool Deinitialize()
Returns
Type | Description |
---|---|
bool | True if de-initialization was successful. |
Overrides
GetPreInitLibraryName(BuildTarget, BuildTargetGroup)
Get the library name, if any, to use for XR PreInit.
Declaration
public string GetPreInitLibraryName(BuildTarget buildTarget, BuildTargetGroup buildTargetGroup)
Parameters
Type | Name | Description |
---|---|---|
Build |
buildTarget | An enum specifying which platform this build is for. |
Build |
buildTargetGroup | An enum specifying which platform group this build is for. |
Returns
Type | Description |
---|---|
string | A string specifying the library name used for XR PreInit. |
GetSettings()
Declaration
public OculusSettings GetSettings()
Returns
Type | Description |
---|---|
Oculus |
Initialize()
Initialize the loader. This should initialize all subsystems to support the desired runtime setup this loader represents.
This is the only method on XRLoader that Management uses to determine the active loader to use. If this
method returns true, Management locks this loader as the Unity
If this method returns false, Unity
Declaration
public override bool Initialize()
Returns
Type | Description |
---|---|
bool | Whether or not initialization succeeded. |
Overrides
Start()
Ask loader to start all initialized subsystems.
Declaration
public override bool Start()
Returns
Type | Description |
---|---|
bool | Whether or not all subsystems were successfully started. |
Overrides
Stop()
Ask loader to stop all initialized subsystems.
Declaration
public override bool Stop()
Returns
Type | Description |
---|---|
bool | Whether or not all subsystems were successfully stopped. |
Overrides
WasAssignedToBuildTarget(BuildTargetGroup)
Declaration
public override void WasAssignedToBuildTarget(BuildTargetGroup buildTargetGroup)
Parameters
Type | Name | Description |
---|---|---|
Build |
buildTargetGroup |