Class MockHMDLoader
Inheritance
XRLoader
XRLoaderHelper
MockHMDLoader
Inherited Members
XRLoaderHelper.m_SubsystemInstanceMap
XRLoaderHelper.GetLoadedSubsystem<T>()
XRLoaderHelper.StartSubsystem<T>()
XRLoaderHelper.StopSubsystem<T>()
XRLoaderHelper.DestroySubsystem<T>()
XRLoaderHelper.WasAssignedToBuildTarget(BuildTargetGroup)
XRLoaderHelper.WasUnassignedFromBuildTarget(BuildTargetGroup)
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.MockHMD.dll
Syntax
public class MockHMDLoader : XRLoaderHelper
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()
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()
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.