Class vGear_Teleport
Teleport tool of vGear controller.
vGear 控制器的傳送工具。
Inheritance
System.Object
UnityEngine.Object
UnityEngine.Component
UnityEngine.Behaviour
UnityEngine.MonoBehaviour
vGear_Teleport
Inherited Members
Namespace: Votanic.vXR.vGear
Assembly: Votanic.vXR.dll
Syntax
[AddComponentMenu("")]
public class vGear_Teleport : vCast_Teleport
Fields
collisionMode
Set the teleport mode.
設定預設傳送工具模式。
Declaration
[Tooltip("Set the teleport mode.\n設定預設傳送工具模式。")]
public bool collisionMode
Field Value
Type | Description |
---|---|
System.Boolean |
overrideTeleportWaypoint
Override waypoint teleportation setting.
覆蓋傳送點傳送設定。
Declaration
[Tooltip("Override waypoint teleportation setting.\n覆蓋傳送點傳送設定。")]
public OverrideTeleportWaypoint overrideTeleportWaypoint
Field Value
Type | Description |
---|---|
OverrideTeleportWaypoint |
resetHeightOffset
Reset the non-collision mode height offset after a teleportation.
傳送後重置非碰撞模式的高度偏移值。
Declaration
[Tooltip("Reset the non-collision mode height offset after a teleportation.\n傳送後重置非碰撞模式的高度偏移值。")]
public bool resetHeightOffset
Field Value
Type | Description |
---|---|
System.Boolean |
teleportWaypoint
Waypoint detection setting.
偵測傳送點設定。
Declaration
[Header("[Advanced]")]
[Tooltip("Waypoint detection setting.\n偵測傳送點設定。")]
public TeleportWaypoint teleportWaypoint
Field Value
Type | Description |
---|---|
TeleportWaypoint |
waypoint
Return the current waypoint detected.
傳回目前偵測的傳送點。
Declaration
[Tooltip("Return the current waypoint detected.\n傳回目前偵測的傳送點。")]
public vGear_Waypoint waypoint
Field Value
Type | Description |
---|---|
vGear_Waypoint |
Methods
CanStand()
Return true if the destination can be stand.
當目的地可站立時傳回 true。
Declaration
public override bool CanStand()
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
CollisionMode(Boolean)
Switch on or off the collision mode.
開啟或關閉碰撞模式。
CollisionMode(true)
Declaration
public void CollisionMode(bool isOn = true)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | isOn | Switch on if true |
SetHeightOffset(Single)
Set the target point height offset of user on Non-collision Mode.
設定在非碰撞模式下,目標位置與使用者高度的偏移。
SetHeightOffset(0)
Declaration
public void SetHeightOffset(float offset = 0F)
Parameters
Type | Name | Description |
---|---|---|
System.Single | offset | Offset value |
SetTeleportWaypoint(TeleportWaypoint)
Set waypoint detection mode.
設定傳送點偵測模式。
SetTeleportWaypoint(TeleportWaypoint.Detect)
Declaration
public void SetTeleportWaypoint(TeleportWaypoint teleportWaypoint = TeleportWaypoint.Snap)
Parameters
Type | Name | Description |
---|---|---|
TeleportWaypoint | teleportWaypoint | Detection mode |