Class vGear_Slider
The UI Slidable Button objects.
使用者介面滑動按鈕物件。
Inheritance
System.Object
UnityEngine.Object
UnityEngine.Component
UnityEngine.Behaviour
UnityEngine.MonoBehaviour
vGear_Slider
Inherited Members
Namespace: Votanic.vXR.vGear
Assembly: Votanic.vXR.dll
Syntax
[AddComponentMenu("")]
public class vGear_Slider : vGear_Button
Fields
checkValueOnly
Disable the first interaction if true.
當 true 時停用第一個互動。
Declaration
[Header("[Slider]")]
[Tooltip("Disable the first interaction.\n停用第一個互動。")]
public bool checkValueOnly
Field Value
Type | Description |
---|---|
System.Boolean |
controllerTransform
Controller transformation calculation setting for sliding.
控制器滑動的變換計算設定。
Declaration
[Tooltip("Controller transformation calculation setting for sliding.\n控制器滑動的變換計算設定。")]
public ControllerTransform controllerTransform
Field Value
Type | Description |
---|---|
ControllerTransform |
defaultValue
Sliding value of slider on start.
開始時滑動按鈕的滑動值。
Declaration
[Tooltip("Sliding value of slider on start.\n開始時滑動按鈕的滑動值。")]
public float defaultValue
Field Value
Type | Description |
---|---|
System.Single |
inertia
Inertia movement rate after controller release.
當控制器放開時的慣性移動率。
Declaration
[Range(0F, 1F)]
[Tooltip("Inertia movement rate after controller release.\n當控制器放開時的慣性移動率。")]
public float inertia
Field Value
Type | Description |
---|---|
System.Single |
maxScrollTransform
Maximum scroll content transformation.
滑動內容最大變換效果。
Declaration
[Tooltip("Maximum scroll content transformation.\n滑動內容最大變換效果。")]
public Coordinate maxScrollTransform
Field Value
Type | Description |
---|---|
Coordinate |
maxSlidedTransform
Maximum slider transformation.
滑動按鈕最大變換效果。
Declaration
[Tooltip("Maximum slider transformation.\n滑動按鈕最大變換效果。")]
public Coordinate maxSlidedTransform
Field Value
Type | Description |
---|---|
Coordinate |
scrollContent
Scroll content transform.
滑動內容 Transform。
Declaration
[Header("[Scroll Content]")]
[Tooltip("Scroll content transform.\n滑動內容 Transform。")]
public Transform scrollContent
Field Value
Type | Description |
---|---|
UnityEngine.Transform |
syncSlider
Synchronized slider.
同步滑動按鈕。
Declaration
[Tooltip("Synchronized slider.\n同步滑動按鈕。")]
public vGear_Slider syncSlider
Field Value
Type | Description |
---|---|
vGear_Slider |
valueRange
The interaction return value range of slider.
滑動按鈕的互動傳回值範圍。
Declaration
[Tooltip("The interaction return value range of slider.\n滑動按鈕的互動傳回值範圍。")]
public float[] valueRange
Field Value
Type | Description |
---|---|
System.Single[] |
Methods
GetValue()
Get current actual return value.
取得目前確實的傳回值。
Declaration
public float GetValue()
Returns
Type | Description |
---|---|
System.Single |
SetValue(Single)
Set value to the slider. (0 to 1)
設定滑動按鈕的值。
SetValue(1)
Declaration
public void SetValue(float value)
Parameters
Type | Name | Description |
---|---|---|
System.Single | value | Sliding value 0 ~ 1 |
SyncValue()
Sync value by current slider transform.
根據目前滑動按鈕 Transform 同步滑動按鈕的值。
Declaration
public void SyncValue()