共用方式為


AnchorManager.CreateAnchor(AnchorId, Transform, Pose) 方法

定義

位於指定位置之本機錨點的平臺相依具現化。

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

參數

id
AnchorId

提供新錨點的錨點標識碼。

parent
UnityEngine.Transform

要停止錨點的物件。

initialPose
UnityEngine.Pose

錨點的姿勢。

傳回

新的錨點

適用於