Add this class to a UI slider and it'll let you trigger events when the cursor moves past a certain step
More...
|
virtual void | OnEnable () |
| On enable, starts listening for value change events More...
|
|
virtual void | OnDisable () |
| On disable, stops listening for value change events More...
|
|
Add this class to a UI slider and it'll let you trigger events when the cursor moves past a certain step
◆ OnDisable()
virtual void MoreMountains.Tools.MMSliderStep.OnDisable |
( |
| ) |
|
|
protectedvirtual |
On disable, stops listening for value change events
◆ OnEnable()
virtual void MoreMountains.Tools.MMSliderStep.OnEnable |
( |
| ) |
|
|
protectedvirtual |
On enable, starts listening for value change events
◆ ValueChangeCheck()
virtual void MoreMountains.Tools.MMSliderStep.ValueChangeCheck |
( |
float |
value | ) |
|
|
virtual |
when a value change is met, we trigger an event
- Parameters
-
◆ _lastStep
float MoreMountains.Tools.MMSliderStep._lastStep = 0f |
|
protected |
◆ _slider
Slider MoreMountains.Tools.MMSliderStep._slider |
|
protected |
◆ OnStep
UnityEvent MoreMountains.Tools.MMSliderStep.OnStep |
the event to trigger when a step is met
◆ StepThreshold
float MoreMountains.Tools.MMSliderStep.StepThreshold = 0.1f |
the threshold to trigger steps at
The documentation for this class was generated from the following file:
- E:/Github/Store/HighroadEngine/Assets/HighroadEngine/MMTools/Tools/MMGUI/MMSliderStep.cs