Feel  3.16
The best way to improve your game's feel and make it extra juicy
MoreMountains.Tools.MMSliderStep Class Reference

Add this class to a UI slider and it'll let you trigger events when the cursor moves past a certain step More...

Inheritance diagram for MoreMountains.Tools.MMSliderStep:

Public Member Functions

virtual void ValueChangeCheck (float value)
 when a value change is met, we trigger an event More...
 

Public Attributes

float StepThreshold = 0.1f
 the threshold to trigger steps at More...
 
UnityEvent OnStep
 the event to trigger when a step is met More...
 

Protected Member Functions

virtual void OnEnable ()
 On enable, starts listening for value change events More...
 
virtual void OnDisable ()
 On disable, stops listening for value change events More...
 

Protected Attributes

Slider _slider
 
float _lastStep = 0f
 

Detailed Description

Add this class to a UI slider and it'll let you trigger events when the cursor moves past a certain step

Member Function Documentation

◆ 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
value

Member Data Documentation

◆ _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: