IMHOTEP Framework
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Pages
Public Member Functions | Public Attributes | List of all members
UI.DualSlider Class Reference
Inheritance diagram for UI.DualSlider:
Inheritance graph
[legend]
Collaboration diagram for UI.DualSlider:
Collaboration graph
[legend]

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
 

Detailed Description

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.


The documentation for this class was generated from the following file: