Show / Hide Table of Contents

Class vGear_Waypoint

Waypoint for teleport.
用於傳送的傳送點。

Inheritance
System.Object
UnityEngine.Object
UnityEngine.Component
UnityEngine.Behaviour
UnityEngine.MonoBehaviour
vGear_Waypoint
Namespace: Votanic.vXR.vGear
Assembly: Votanic.vXR.dll
Syntax
[AddComponentMenu("")]
public class vGear_Waypoint : MonoBehaviour

Fields

applyRotation

The waypoint is teleported with rotation or not.
傳送點是否應用旋轉。

Declaration
[Tooltip("The waypoint is teleported with rotation or not.\n傳送點是否應用旋轉。")]
public bool applyRotation
Field Value
Type Description
System.Boolean

defaultEnable

Enable on start or not.
設定開始時是否啟用。

Declaration
[Tooltip("Enable on start or not.\n設定開始時是否啟用。")]
public bool defaultEnable
Field Value
Type Description
System.Boolean

faceAngle

The face angle if applied rotation.
當應用旋轉時的面向角度。

Declaration
[Tooltip("The face angle if applied rotation.\n當應用旋轉時的面向角度。")]
public Vector3 faceAngle
Field Value
Type Description
UnityEngine.Vector3

isDisabled

Return true if the waypoint is disabled.
當傳送點停用時傳回 true。

Declaration
[Header("[Status]")]
[Tooltip("Return true if the waypoint is disabled.\n當傳送點停用時傳回 true。")]
public bool isDisabled
Field Value
Type Description
System.Boolean

offset

Position offset of teleport point.
傳送點位置偏移。

Declaration
[Tooltip("Position offset of teleport point.\n傳送點位置偏移。")]
public Vector2 offset
Field Value
Type Description
UnityEngine.Vector2

show

Return true if the waypoint is showing.
當傳送點顯示時傳回 true。

Declaration
[Tooltip("Return true if the waypoint is showing.\n當傳送點顯示時傳回 true。")]
public bool show
Field Value
Type Description
System.Boolean

showFaceAngle

Show the face angle UI on editor.
在 Editor 顯示面向角度。

Declaration
[Tooltip("Show the face angle UI on editor.\n在 Editor 顯示面向角度。")]
public bool showFaceAngle
Field Value
Type Description
System.Boolean

standingPoint

Teleport to user standing point, either the user object transform position.
傳送至使用者站立地點,否則為使用者物件 Transform 位置。

Declaration
[Header("[Settings]")]
[Tooltip("Teleport to user standing point, either the user object transform position.\n傳送至使用者站立地點,否則為使用者物件 Transform 位置。")]
public bool standingPoint
Field Value
Type Description
System.Boolean

uiColor

Color of face angle UI.
面向角度 UI 的顏色。

Declaration
[Tooltip("Color of face angle UI.\n面向角度 UI 的顏色。")]
public Color uiColor
Field Value
Type Description
UnityEngine.Color

Methods

Enable(Boolean)

Enable or disable the waypoint.
啟用或停用傳送點。

Enable(true)

Declaration
public void Enable(bool enable)
Parameters
Type Name Description
System.Boolean enable

Enable if ture
當 true 時啟用

In This Article
Back to top Generated by DocFX