Show / Hide Table of Contents

Class vGear_Slider

The UI Slidable Button objects.
使用者介面滑動按鈕物件。

Inheritance
System.Object
UnityEngine.Object
UnityEngine.Component
UnityEngine.Behaviour
UnityEngine.MonoBehaviour
vCast_Interactables
vGear_Interactables
vGear_UI
vGear_Button
vGear_Slider
Inherited Members
vGear_Button.select
vGear_Button.click
vGear_Button.defaultEnable
vGear_Button.Enable()
vGear_Button.Disable()
vGear_UI.isTransiting
vGear_UI.isPaused
vGear_UI.graphics
vGear_UI.renderers
vGear_UI.colorField
vGear_UI.originColor
vGear_UI.originAlpha
vGear_UI.originOutline
vGear_UI.transition
vGear_UI.disable
vGear_UI.PauseTransition()
vGear_UI.UnPauseTransition()
vGear_Interactables.networkCommands
vGear_Interactables.interactions
vGear_Interactables.colliderDetection
vGear_Interactables.auxiliarySetting
vGear_Interactables.OnTriggerEnter(Collider)
vGear_Interactables.OnTriggerExit(Collider)
vGear_Interactables.OnCollisionEnter(Collision)
vGear_Interactables.OnCollisionExit(Collision)
vCast_Interactables.interactive
vCast_Interactables.setBuiltInLayer
vCast_Interactables.interactableChild
vCast_Interactables.interaction
vCast_Interactables.climbSetting
vCast_Interactables.grabSetting
vCast_Interactables.customDuration
vCast_Interactables.isGrabbed
vCast_Interactables.isPicked
vCast_Interactables.isSelected
vCast_Interactables.collisionInteractors
vCast_Interactables.grabbables
vCast_Interactables.Start()
vCast_Interactables.LateUpdate()
vCast_Interactables.SetParent(Transform, Vector3, Vector3)
vCast_Interactables.SetParent(Transform)
vCast_Interactables.SetGrabbables(Transform)
vCast_Interactables.Grab()
vCast_Interactables.Ungrab()
vCast_Interactables.Pick()
vCast_Interactables.Drop()
vCast_Interactables.OnDestroy()
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()
In This Article
Back to top Generated by DocFX