共用方式為


IAttachmentPointManager.TeleportAttachmentPoint 方法

定義

Teleport (與 Move) 表示對象在舊位置消失,並立即在凍結空間的新位置重新出現,而不會周遊兩者之間的空間。

public void TeleportAttachmentPoint (Microsoft.MixedReality.WorldLocking.Core.IAttachmentPoint attachPointIface, UnityEngine.Vector3 newFrozenPosition, Microsoft.MixedReality.WorldLocking.Core.IAttachmentPoint context);
abstract member TeleportAttachmentPoint : Microsoft.MixedReality.WorldLocking.Core.IAttachmentPoint * UnityEngine.Vector3 * Microsoft.MixedReality.WorldLocking.Core.IAttachmentPoint -> unit
Public Sub TeleportAttachmentPoint (attachPointIface As IAttachmentPoint, newFrozenPosition As Vector3, context As IAttachmentPoint)

參數

attachPointIface
IAttachmentPoint

遠端傳送的附件點

newFrozenPosition
UnityEngine.Vector3

要傳送至的位置。

context
IAttachmentPoint

選擇性內容。

備註

使用此選項可透過空間 (連續移動,也就是遠端傳送) 。 針對連續移動,請使用 MoveAttachmentPoint(IAttachmentPoint, Vector3)。 這相當於釋出附件點 () ReleaseAttachmentPoint(IAttachmentPoint) ,並在指定內容的新位置建立 CreateAttachmentPoint(Vector3, IAttachmentPoint, AdjustLocationDelegate, AdjustStateDelegate) () ,不同之處在於使用 Teleport 可讓參考現有的附件點維持有效狀態。

適用於