Skip to main content
Version: 21 Aug 2024

MLSpatialAnchorLocalizationInfo

A structure containing information about the device's localization state.

Public Methods

MLSpatialAnchorLocalizationInfo Create

public static MLSpatialAnchorLocalizationInfo Create()

MLSpatialAnchorLocalizationInfo

public MLSpatialAnchorLocalizationInfo(
uint version
)

Parameters

TypeNameDescription
uintversion

Public Attributes

LocalizationStatus

The localization status at the time this structure was returned.


public readonly LocalizationStatus LocalizationStatus;

TypeDescription
readonly LocalizationStatusLocalizationStatus

MappingMode

The current mapping mode.


public readonly MappingMode MappingMode;

TypeDescription
readonly MappingModeThe current mapping mode, set via settings.

SpaceId

If localized, this will contain the unique ID of the current space.


public readonly NativeBindings.MLUUIDBytes SpaceId;

TypeDescription
readonly NativeBindings.MLUUIDBytesUniversally unique identifier, byte array.

SpaceName

If localized, this will contain the name of the current space.


public readonly string SpaceName;


TargetSpaceOrigin

If localized, this will contain the identifier of the transform of the target space's origin relative to the world origin.


public readonly MagicLeapNativeBindings.MLCoordinateFrameUID TargetSpaceOrigin;


Version

Version of the structure.


public readonly uint Version;