Use the variable slider to add a UI element in your layout that controls a numerical variable.

Settings
General | |
---|
Variable name | Name of variable to control |
Min | Slider's minimum value |
Max | Slider's maximum value |
Step | Increments between slider's min and max value |