Class MagicLeapLoader
Implements
Inherited Members
Namespace: UnityEngine .XR.MagicLeap
Assembly: UnityEngine.XR.MagicLeap.dll
Syntax
[XRSupportedBuildTarget(BuildTargetGroup.Android)]
[XRSupportedBuildTarget(BuildTargetGroup.Standalone, new BuildTarget[] { BuildTarget.StandaloneOSX, BuildTarget.StandaloneWindows, BuildTarget.StandaloneWindows64 })]
public sealed class MagicLeapLoader : XRLoaderHelper, IXRLoaderPreInit
Properties
assetInstance
Location of the Magic Leap Loader asset.
Declaration
public static MagicLeapLoader assetInstance { get; }
Property Value
Type | Description |
---|---|
Magic |
displaySubsystem
Display Subsystem property. Use this to determine the loaded Display Subsystem.
Declaration
public XRDisplaySubsystem displaySubsystem { get; }
Property Value
Type | Description |
---|---|
XRDisplay |
gestureSubsystem
XR Gesture Subsystem property. Use this to determine the loaded XR Gesture Subsystem.
Declaration
public XRGestureSubsystem gestureSubsystem { get; }
Property Value
Type | Description |
---|---|
XRGesture |
inputSubsystem
XR Input Subsystem property. Use this to determine the loaded XR Input Subsystem.
Declaration
public XRInputSubsystem inputSubsystem { get; }
Property Value
Type | Description |
---|---|
XRInput |
meshSubsystem
XR Meshing Subsystem property. Use this to determine the loaded XR Meshing Subsystem.
Declaration
public XRMeshSubsystem meshSubsystem { get; }
Property Value
Type | Description |
---|---|
XRMesh |
planeSubsystem
XR Plane Subsystem property. Use this to determine the loaded XR Plane Subsystem.
Declaration
public XRPlaneSubsystem planeSubsystem { get; }
Property Value
Type | Description |
---|---|
XRPlane |
raycastSubsystem
XR Raycast Subsystem property. Use this to determine the loaded XR Raycast Subsystem.
Declaration
public XRRaycastSubsystem raycastSubsystem { get; }
Property Value
Type | Description |
---|---|
XRRaycast |
sessionSubsystem
XR Session Subsystem property. Use this to determine the loaded XR Session Subsystem.
Declaration
public XRSessionSubsystem sessionSubsystem { get; }
Property Value
Type | Description |
---|---|
XRSession |
Methods
Deinitialize()
Teardown (Deinitialize) all subsystems.
Declaration
public override bool Deinitialize()
Returns
Type | Description |
---|---|
bool | Always returns true |
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. |
Initialize()
Initialize all the Magic Leap subsystems.
Declaration
public override bool Initialize()
Returns
Type | Description |
---|---|
bool | true if successfully created all subsystems. |
Overrides
Start()
Start all subsystems.
Declaration
public override bool Start()
Returns
Type | Description |
---|---|
bool | true if all subsystems have successfully started. |
Overrides
Stop()
Stop all Magic Leap Subsystems.
Declaration
public override bool Stop()
Returns
Type | Description |
---|---|
bool | always returns true. |