Overview
The Slider control type allows you to to set a value between 0 and 1. NOTE: It is recommended that Sliders not be set to Pixel Perfect or Auto Resize, or else should have their anchor set to a left-aligned method. |
Class |
Interactivity
The Slider control type executes code in response to user input by invoking a method on a MonoBehavior (specified by setting the "Script With Method To Invoke" and "Method To Invoke" properties), and/or by calling a delegate, set by calling the SetInputDelegate() method through script. More specifically, the "Method To Invoke" is invoked when the slider's knob is moved, and the input delegate is called whenever there is input to the slider knob itself. Additionally, when the value of the slider changes as a result of user input, any registered EZValueChangedDelegate delegate will be called.
You can set and retrieve the current value of the control through the Value property.
|
Control-specific Properties
|
States Technically, only the knob of a slider can have different "states". However, to define the overall slider appearance, you must fill in the following "states":
|