Share via


AnchorManager.CreateAnchor(AnchorId, Transform, Pose) Method

Definition

Platform dependent instantiation of a local anchor at given position.

protected abstract Microsoft.MixedReality.WorldLocking.Core.SpongyAnchor CreateAnchor (Microsoft.MixedReality.WorldLocking.Core.AnchorId id, UnityEngine.Transform parent, UnityEngine.Pose initialPose);
abstract member CreateAnchor : Microsoft.MixedReality.WorldLocking.Core.AnchorId * UnityEngine.Transform * UnityEngine.Pose -> Microsoft.MixedReality.WorldLocking.Core.SpongyAnchor
Protected MustOverride Function CreateAnchor (id As AnchorId, parent As Transform, initialPose As Pose) As SpongyAnchor

Parameters

id
AnchorId

Anchor id to give new anchor.

parent
UnityEngine.Transform

Object to hang anchor off of.

initialPose
UnityEngine.Pose

Pose for the anchor.

Returns

The new anchor

Applies to