Share via


IAlignmentManager.RestoreAlignmentAnchor(String, Pose) Method

Definition

Attempt to restore an alignment anchor from an earlier session. Stored alignment anchor must match in both uniqueName and virtual pose.

public Microsoft.MixedReality.WorldLocking.Core.AnchorId RestoreAlignmentAnchor (string uniqueName, UnityEngine.Pose virtualPose);
abstract member RestoreAlignmentAnchor : string * UnityEngine.Pose -> Microsoft.MixedReality.WorldLocking.Core.AnchorId
Public Function RestoreAlignmentAnchor (uniqueName As String, virtualPose As Pose) As AnchorId

Parameters

uniqueName
String

Unique name use previously to create the alignment anchor.

virtualPose
UnityEngine.Pose

Virtual pose to match with stored anchor pose.

Returns

AnchorId of restored Alignment Anchor on success, else AnchorId.Invalid.

Remarks

If successful, alignment anchor is added but not sent. It must be followed by a call to SendAlignmentAnchors to take effect.

Applies to