MagicLeapLocalizationMapFeature
NameSpace: LocalizationMaps
Inherits from:
MagicLeapOpenXRFeatureWithInterception< MagicLeapLocalizationMapFeature >,
MagicLeapOpenXRFeatureBase,
OpenXRFeature
Public Methods
XrResult EnableLocalizationEvents
public XrResult EnableLocalizationEvents(
bool enableEvents
)
Parameters
Type | Name | Description |
---|---|---|
bool | enableEvents |
XrResult ExportLocalizatioMap
public XrResult ExportLocalizatioMap(
string mapId,
out byte [] mapData
)
Parameters
Type | Name | Description |
---|---|---|
string | mapId | |
out byte [] | mapData |
XrResult ExportLocalizationMap
public XrResult ExportLocalizationMap(
string mapId,
out byte [] mapData
)
Parameters
Type | Name | Description |
---|---|---|
string | mapId | |
out byte [] | mapData |
bool GetLatestLocalizationMapData
public bool GetLatestLocalizationMapData(
out LocalizationEventData data
)
Parameters
Type | Name | Description |
---|---|---|
out LocalizationEventData | data |
XrResult GetLocalizationMapsList
public XrResult GetLocalizationMapsList(
out LocalizationMap [] maps
)
Parameters
Type | Name | Description |
---|---|---|
out LocalizationMap [] | maps |
Pose GetMapOrigin
public Pose GetMapOrigin()
XrResult ImportLocalizationMap
public XrResult ImportLocalizationMap(
byte [] mapData,
out string mapId
)
Parameters
Type | Name | Description |
---|---|---|
byte [] | mapData | |
out string | mapId |
XrResult RequestMapLocalization
public XrResult RequestMapLocalization(
string mapId
)
Parameters
Type | Name | Description |
---|---|---|
string | mapId |
Protected Methods
MarkFunctionsToIntercept
protected virtual override void MarkFunctionsToIntercept()
Reimplements: MarkFunctionsToIntercept
OnInstanceCreate
protected override bool OnInstanceCreate(
ulong xrInstance
)
Parameters
Type | Name | Description |
---|---|---|
ulong | xrInstance |
OnSessionDestroy
protected override void OnSessionDestroy(
ulong xrSession
)
Parameters
Type | Name | Description |
---|---|---|
ulong | xrSession |
Public Attributes
ExtensionName
public const string ExtensionName = "XR_ML_localization_map";
FeatureId
public const string FeatureId = "com.magicleap.openxr.feature.ml2_localizationmap";
Public Events
OnLocalizationChangedEvent
public static Action< LocalizationEventData > OnLocalizationChangedEvent()