Class vGear_VirtualKey
3D Virtual Key for typing.
輸入用的 3D 虛擬按鍵。
Inheritance
System.Object
UnityEngine.Object
UnityEngine.Component
UnityEngine.Behaviour
UnityEngine.MonoBehaviour
vGear_VirtualKey
Namespace: Votanic.vXR.vGear
Assembly: Votanic.vXR.dll
Syntax
[AddComponentMenu("")]
public class vGear_VirtualKey : MonoBehaviour
Fields
controller
Current hit controller.
目前的撞擊控制器。
Declaration
[Header("[Status]")]
[Tooltip("Current hit controller.\nUI 目前的撞擊控制器。")]
public vCast_Controller controller
Field Value
Type | Description |
---|---|
vCast_Controller |
cooldown
Cool down for next action.
下個動作的冷卻時間。
Declaration
[Tooltip("Cool down for next action.\n下個動作的冷卻時間。")]
public float cooldown
Field Value
Type | Description |
---|---|
System.Single |
inputField
Current input field.
目前的輸入欄。
Declaration
[Tooltip("Current input field.\nUI 目前的輸入欄。")]
public InputField inputField
Field Value
Type | Description |
---|---|
UnityEngine.UI.InputField |
interactables
Interactables component.
交互物組件。
Declaration
[Tooltip("Interactables component.\nUI 交互物組件。")]
public vGear_Interactables interactables
Field Value
Type | Description |
---|---|
vGear_Interactables |
keepActionTimer
Timer for keeping the key action.
持續按鍵動作的計時。
Declaration
[Tooltip("Timer for keeping the key action.\n持續按鍵動作的計時。")]
public float keepActionTimer
Field Value
Type | Description |
---|---|
System.Single |
keys
Texts of key on different shift value.
在不同替換值的按鍵文本。
Declaration
[Tooltip("Texts of key on different shift value.\n在不同替換值的按鍵文本。")]
public List<string> keys
Field Value
Type | Description |
---|---|
System.Collections.Generic.List<System.String> |
keyText
UI Text component.
UI 文本組件。
Declaration
[Header("[Components]")]
[Tooltip("UI Text component.\nUI 文本組件。")]
public Text keyText
Field Value
Type | Description |
---|---|
UnityEngine.UI.Text |
offset
Position offset when hitted.
被擊中時的位於偏移。
Declaration
[Tooltip("Position offset when hitted.\n被擊中時的位於偏移。")]
public float offset
Field Value
Type | Description |
---|---|
System.Single |
outliner
Outliner component.
輪廓組件。
Declaration
[Tooltip("Outliner component.\nUI 輪廓組件。")]
public vCast_Outliner outliner
Field Value
Type | Description |
---|---|
vCast_Outliner |
pressColor
Model color when pressing.
按下時的模型顏色。
Declaration
[Tooltip("Model color when pressing.\n按下時的模型顏色。")]
public Color pressColor
Field Value
Type | Description |
---|---|
UnityEngine.Color |
pressDetection
Minimum value to determine press action.
判斷為按下的最少值。
Declaration
[Tooltip("Minimum value to determine press action.\n判斷為按下的最少值。")]
public float pressDetection
Field Value
Type | Description |
---|---|
System.Single |
pressScale
Model scale when pressing.
按下時的模型大小。
Declaration
[Tooltip("Model scale when pressing.\n按下時的模型大小。")]
public float pressScale
Field Value
Type | Description |
---|---|
System.Single |
selectColor
Model color when selecting.
點選時的模型顏色。
Declaration
[Tooltip("Model color when selecting.\n點選時的模型顏色。")]
public Color selectColor
Field Value
Type | Description |
---|---|
UnityEngine.Color |
shiftIndex
Shift value of key.
按鍵替換值。
Declaration
public static int shiftIndex
Field Value
Type | Description |
---|---|
System.Int32 |
swipe
Support swipe input or not.
是否支持滑動輸入。
Declaration
[Tooltip("Support swipe input or not.\n是否支持滑動輸入。")]
public bool swipe
Field Value
Type | Description |
---|---|
System.Boolean |
type
Type of virtual key.
虛擬鍵盤的類型。
Declaration
[Header("[Settings]")]
[Tooltip("Type of virtual key.\n虛擬鍵盤的類型。")]
public VirtualKeyType type
Field Value
Type | Description |
---|---|
VirtualKeyType |
vibration
Vibration when hit the key.
當擊中按鍵時震動。
Declaration
[Tooltip("Vibration when hit the key.\n當擊中按鍵時震動。")]
public bool vibration
Field Value
Type | Description |
---|---|
System.Boolean |