Class OculusLoader
Inheritance
XRLoader
XRLoaderHelper
OculusLoader
Implements
IXRLoaderPreInit
Inherited Members
XRLoaderHelper.m_SubsystemInstanceMap
XRLoaderHelper.GetLoadedSubsystem<T>()
XRLoaderHelper.StartSubsystem<T>()
XRLoaderHelper.StopSubsystem<T>()
XRLoaderHelper.DestroySubsystem<T>()
XRLoaderHelper.WasUnassignedFromBuildTarget(BuildTargetGroup)
Object.InstantiateAsync<T>(T)
Object.InstantiateAsync<T>(T, Transform)
Object.InstantiateAsync<T>(T, Vector3, Quaternion)
Object.InstantiateAsync<T>(T, Transform, Vector3, Quaternion)
Object.Instantiate(Object, Scene)
Object.FindObjectsByType<T>(FindObjectsSortMode)
Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
Object.FindFirstObjectByType<T>()
Object.FindAnyObjectByType<T>()
Object.FindFirstObjectByType<T>(FindObjectsInactive)
Object.FindAnyObjectByType<T>(FindObjectsInactive)
Assembly: Unity.XR.Oculus.dll
Syntax
public class OculusLoader : XRLoaderHelper, IXRLoaderPreInit
Properties
displaySubsystem
Declaration
public XRDisplaySubsystem displaySubsystem { get; }
Property Value
Declaration
public XRInputSubsystem inputSubsystem { get; }
Property Value
Methods
Deinitialize()
Override of UnityEngine.XR.Management.XRLoader.Deinitialize() to provide for clearing the instance map.true
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
UnityEngine.XR.Management.XRLoaderHelper.Deinitialize()
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 |
BuildTarget |
buildTarget |
An enum specifying which platform this build is for.
|
BuildTargetGroup |
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
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 UnityEngine.XR.Management.XRManagerSettings.activeLoader
and and stops fall through processing on the UnityEngine.XR.Management.XRManagerSettings.loaders list of current loaders.
If this method returns false, UnityEngine.XR.Management.XRManagerSettings continues to process the next loader
in the UnityEngine.XR.Management.XRManagerSettings.loaders list, or fails completely when the list is exhausted.
Declaration
public override bool Initialize()
Returns
Type |
Description |
bool |
Whether or not initialization succeeded.
|
Overrides
UnityEngine.XR.Management.XRLoader.Initialize()
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
UnityEngine.XR.Management.XRLoader.Start()
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
UnityEngine.XR.Management.XRLoader.Stop()
WasAssignedToBuildTarget(BuildTargetGroup)
Declaration
public override void WasAssignedToBuildTarget(BuildTargetGroup buildTargetGroup)
Parameters
Overrides
UnityEngine.XR.Management.XRLoaderHelper.WasAssignedToBuildTarget(UnityEditor.BuildTargetGroup)
Implements
UnityEngine.XR.Management.IXRLoaderPreInit
Did you find this page useful? Please give it a rating:
Thanks for rating this page!
What kind of problem would you like to report?
Thanks for letting us know! This page has been marked for review based on your feedback.
If you have time, you can provide more information to help us fix the problem faster.
Provide more information
You've told us this page needs code samples. If you'd like to help us further, you could provide a code sample, or tell us about what kind of code sample you'd like to see:
You've told us there are code samples on this page which don't work. If you know how to fix it, or have something better we could use instead, please let us know:
You've told us there is information missing from this page. Please tell us more about what's missing:
You've told us there is incorrect information on this page. If you know what we should change to make it correct, please tell us:
You've told us this page has unclear or confusing information. Please tell us more about what you found unclear or confusing, or let us know how we could make it clearer:
You've told us there is a spelling or grammar error on this page. Please tell us what's wrong:
You've told us this page has a problem. Please tell us more about what's wrong:
Thank you for helping to make the Unity documentation better!
Your feedback has been submitted as a ticket for our documentation team to review.
We are not able to reply to every ticket submitted.