Skip to main content
Version: 14 Oct 2024

LocalizationInfo

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

Public Methods

LocalizationInfo

public LocalizationInfo(
NativeBindings.MLSpatialAnchorLocalizationInfo nativeInfo
)

Parameters

TypeNameDescription
NativeBindings.MLSpatialAnchorLocalizationInfonativeInfoA structure containing information about the device's localization state.

override string ToString

public override string ToString()

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 name of the current space.


public readonly string SpaceId => this.spaceId.ToString();


SpaceName

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


public readonly string SpaceName;


SpaceOrigin

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


public readonly Pose SpaceOrigin;