How to Unity
Unity UI Slider — The Ultimate Guide
In Unity, the Slider is a UI component that allows users to select a value within a specified range by dragging a handle along a track. By default, this value is a float number.
Its usage can be extended to many purposes since it provides a visual representation of a continuous numerical input: let’s think of a loading/progress bar or a health bar! Once you get rid of the handle, the Slider becomes a bar which cannot be manually modified anymore… but you still can via scripting.
The creation of a Slider follows the same rule as any other Unity UI element:
Access the creation menu → UI → Slider.