Click or drag to resize

Slider Class

Enables this object to be slided along a track
Inheritance Hierarchy
SystemObject
  UnityEngine.Object
    UnityEngine.Component
      UnityEngine.Behaviour
        UnityEngine.MonoBehaviour
          ImmerseSDKLoggingBehaviour
            ImmerseSDK.IndexingIndexedMonoBehaviour
              ImmerseSDK.InteractionEngageableObject
                ImmerseSDK.InteractionSlider

Namespace:  ImmerseSDK.Interaction
Assembly:  ImmerseSDK.App (in ImmerseSDK.App.dll) Version: 3.9.0.0 (3.9.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
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 MethodWaitForT
Waits for a singleton on a coroutine
(Defined by SingletonManager.)
Top
See Also