IMHOTEP Framework
|
Public Member Functions | |
void | setValues (float left, float right) |
Modifies the slider values. | |
void | OnPointerDown (PointerEventData data) |
void | OnPointerUp (PointerEventData data) |
void | OnPointerHover (PointerEventData data) |
Public Attributes | |
Sprite | SliderSprite |
Color | SliderColor = new Color32 (101, 131, 161, 220) |
OnDualSliderValuesChanged | OnValuesChanged |
Slider with two sliding parts (left and right) which can be used to specify a range. To use, attach this to a UI element. The UI Element must have a RectTransform and an Image component. Then set the OnValuesChanged event in the Unity Editor to point to a function which accepts two floats (minimum and maximum values). This function will be called whenever the slider values are changed. The sliders will automatically be generated and will fill the size of the RectTransform.
Definition at line 24 of file DualSlider.cs.