Class OpenXRLoader
Loader for the OpenXR Plug-in. Used by XR Plug-in Management to manage OpenXR lifecycle.
Implements
IXRLoaderPreInit
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)
Namespace: UnityEngine.XR.OpenXR
Assembly: Unity.XR.OpenXR.dll
Syntax
[XRSupportedBuildTarget(BuildTargetGroup.Standalone, new BuildTarget[] { BuildTarget.StandaloneWindows64 })]
[XRSupportedBuildTarget(BuildTargetGroup.Android)]
[XRSupportedBuildTarget(BuildTargetGroup.Metro)]
public class OpenXRLoader : OpenXRLoaderBase, IXRLoaderPreInit
Methods
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. |
Implements
UnityEngine.XR.Management.IXRLoaderPreInit