Click or drag to resize

Slider Class

Enables this object to be slided along a track
Inheritance Hierarchy

Namespace:  ImmerseSDK.Interaction
Assembly:  ImmerseSDK.App (in ImmerseSDK.App.dll) Version: 3.5.0.0 (3.5.0.0)
Syntax
C#
public class Slider : EngageableObject

The Slider type exposes the following members.

Constructors
  NameDescription
Public methodSlider
Initializes a new instance of the Slider class
Top
Properties
  NameDescription
Public propertyCurrentValue
Current Value of the slider
Protected propertySensitivity
Sensitivity of movement that is applied (acts like a dampener). Note this is applied to both angular movement and positional movement.
(Overrides EngageableObjectSensitivity.)
Top
Methods
  NameDescription
Protected methodAwake
Unity component method
(Overrides EngageableObjectAwake.)
Protected methodFixedUpdate
Unity Component Method
(Overrides EngageableObjectFixedUpdate.)
Protected methodLateUpdate
Unity Component Method
(Overrides EngageableObjectLateUpdate.)
Protected methodRestrictMovement
Override this to restrict movement direction in some way. Default behavior is to return the direction unmodified.
(Overrides EngageableObjectRestrictMovement(Vector3).)
Protected methodRestrictPosition
Override this to restrict an object's position in some way. Default behavior is to return the target position unmodified.
(Overrides EngageableObjectRestrictPosition(Vector3).)
Public methodSetValue
Sets the current slider value along the movement axis
Protected methodStart
Unity component method
(Overrides IndexedMonoBehaviourStart.)
Protected methodUpdate
Unity Component Method
(Overrides EngageableObjectUpdate.)
Top
Events
  NameDescription
Public eventOnValueChanged
Fired when the value changes. Value is (0..1)
Top
Fields
  NameDescription
Private field_invertDirection
Default direction is from min to max. If the slider's value should be inverted, set this flag
Private field_max
Maximum value for the movement axis
Private field_min
Minimum value for the movement axis
Private field_movementAxis
The axis along which the slider moves
Private field_sensitivity
Sensitivity of movement that is applied (acts like a dampener). Note this is applied to both angular movement and positional movement.
Top
Extension Methods
  NameDescription
Public Extension MethodGetCopyOf
Copies all properties of a component from source to target. Uses reflection to set properties.
(Defined by ComponentExtensions.)
Public Extension MethodGetObjectIndex
Gets the index from the IndexedMonoBehaviour
(Defined by GUID.)
Public Extension MethodGetOwner
Gets the owner id from the IndexedMonoBehaviour
(Defined by GUID.)
Public Extension MethodGetOwnerType
Gets the owner type from the IndexedMonoBehaviour
(Defined by GUID.)
Public Extension MethodGetScene
Gets the scene id from the IndexedMonoBehaviour
(Defined by GUID.)
Public Extension MethodWaitForT
Waits for a singleton on a coroutine
(Defined by SingletonManager.)
Top
See Also