Skip to main content
Version: 21 Aug 2024

SpaceLocalizationResult

A structure containing information about the device's localization state. This structure must be initialized by calling #MLSpaceLocalizationResultInit before usebefore use.

Public Methods

SpaceLocalizationResult Create

Initialize default values for #MLSpaceLocalizationResult.

public static SpaceLocalizationResult Create(
uint version =3u
)

Parameters

TypeNameDescription
uintversion

Public Attributes

ConfidenceOfLocalization

The confidence level of this localization result.


public readonly LocalizationConfidence ConfidenceOfLocalization;

TypeDescription
readonly LocalizationConfidenceThe confidence of the current localization.

Error

Represents a bitmask of LocalizationErrorFlag.


public readonly uint Error;


LocalizationStatus

The localization status at the time this structure was returned.


public readonly Status LocalizationStatus;

TypeDescription
readonly StatusThe current localization status.

Space

Space information. If localized(#MLSpaceLocalizationStatus_Localized) this will contain valid Space information. If not localized this field should be ignored.


public readonly Space Space;

TypeDescription
readonly SpaceA structure containing information about a Magic Leap Space. This structure must be initialized by calling #MLSpaceInit before use.

TargetSpaceOrigin

Target space's origin relative to world origin. If localized this will contain the identifier of the transform of the target space's origin relative to the world origin. If not localized this will be null.


public readonly NativeBindings.MLCoordinateFrameUID TargetSpaceOrigin;

TypeDescription
readonly NativeBindings.MLCoordinateFrameUIDA unique identifier which represents a coordinate frame. The unique identifier is comprised of two values.

Version

Version of the structure.


public uint Version;