IAttachmentPoint.TeleportTo 方法

定义

通知附件点已传送到新位置。

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

参数

manager
IAttachmentPointManager

经理

newFrozenPosition
UnityEngine.Vector3

新位置

注解

这应该用于不连续的移动,即传送。 对于连续运动,请使用 MoveTo(IAttachmentPointManager, Vector3)。 这等效于 TeleportAttachmentPoint(IAttachmentPoint, Vector3, IAttachmentPoint)

适用于