Skip to main content
Version: 20 Mar 2024

MagicLeapOpenXRFeatureBase

NameSpace: MagicLeapSupport

Inherits from:
OpenXRFeature

Inherited by:
UnityEngine.XR.OpenXR.Features.MagicLeapSupport.MagicLeapFacialExpressionFeature,
UnityEngine.XR.OpenXR.Features.MagicLeapSupport.MagicLeapLocalizationMapFeature,
UnityEngine.XR.OpenXR.Features.MagicLeapSupport.MagicLeapMarkerUnderstandingFeature,
UnityEngine.XR.OpenXR.Features.MagicLeapSupport.MagicLeapMeshingFeature,
UnityEngine.XR.OpenXR.Features.MagicLeapSupport.MagicLeapPlanesFeature,
UnityEngine.XR.OpenXR.Features.MagicLeapSupport.MagicLeapReferenceSpacesFeature,
UnityEngine.XR.OpenXR.Features.MagicLeapSupport.MagicLeapRenderingExtensionsFeature,
UnityEngine.XR.OpenXR.Features.MagicLeapSupport.MagicLeapSpatialAnchorsFeature,
UnityEngine.XR.OpenXR.Features.MagicLeapSupport.MagicLeapSpatialAnchorsStorageFeature,
UnityEngine.XR.OpenXR.Features.MagicLeapSupport.MagicLeapSystemNotificationsFeature,
UnityEngine.XR.OpenXR.Features.MagicLeapSupport.MagicLeapUserCalibrationFeature

Public Methods

bool GetUnityPose

public bool GetUnityPose(
ulong space,
out Pose pose
)

Parameters

TypeNameDescription
ulongspace
out Posepose

Protected Methods

CheckEnabledExtension

protected void CheckEnabledExtension(
string extensionName,
bool required =false
)

Parameters

TypeNameDescription
stringextensionName
boolrequired

GetFeatureId

protected virtual string GetFeatureId()

Reimplemented by: GetFeatureId, GetFeatureId, GetFeatureId, GetFeatureId, GetFeatureId, GetFeatureId, GetFeatureId


HookGetInstanceProcAddr

protected override IntPtr HookGetInstanceProcAddr(
IntPtr func
)

Parameters

TypeNameDescription
IntPtrfunc

OnAppSpaceChange

protected override void OnAppSpaceChange(
ulong xrSpace
)

Parameters

TypeNameDescription
ulongxrSpace

OnInstanceCreate

protected override bool OnInstanceCreate(
ulong xrInstance
)

Parameters

TypeNameDescription
ulongxrInstance

OnInstanceDestroy

protected override void OnInstanceDestroy(
ulong xrInstance
)

Parameters

TypeNameDescription
ulongxrInstance

OnSessionCreate

protected override void OnSessionCreate(
ulong xrSession
)

Parameters

TypeNameDescription
ulongxrSession

Protected Attributes

dependsOn


protected IEnumerable< Type > dependsOn => Enumerable.Empty<Type>();