IAttachmentPointManager.TeleportAttachmentPoint 方法

定义

传送 (而不是移动) 意味着对象已经消失在其旧位置,并立即重新出现在其冻结空间中的新位置,而无需遍历之间的空间。

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 允许对现有附件点的引用保持有效。

适用于