Skip to main content
Version: 14 Oct 2024

MLSpatialAnchorCreateInfo

A structure used to populate anchor creation info when creating a new Spatial Anchor.

Public Methods

MLSpatialAnchorCreateInfo

public MLSpatialAnchorCreateInfo(
Pose Pose,
ulong ExpirationTimestamp
)

Parameters

TypeNameDescription
PosePose
ulongExpirationTimestamp

Public Attributes

ExpirationTimestamp

The suggested expiration time for this anchor represented in seconds since the Unix epoch. This is implemented as an expiration timestamp in the future after which the associated anchor should be considered no longer valid and may be removed by the Spatial Anchor system. If the timestamp is set to zero in this struct, it will default to one year from when the anchor is created.


public readonly ulong ExpirationTimestamp;


Transform

The desired transform of the new Spatial Anchor. The anchor's transform is set when the anchor is created but may be updated later by the Spatial Anchor system based on factors such as quality of the mapped space and subsequent localizations.


public readonly NativeBindings.MLTransform Transform;

TypeDescription
readonly NativeBindings.MLTransformInformation used to transform from one coordinate frame to another.

Version

Version of the structure.


public readonly uint Version;