How to Unity

Unity UI Slider — The Ultimate Guide

Daniele Quero, PhD
Technology Hits
4 min readMay 24, 2023

--

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.

--

--

Daniele Quero, PhD
Technology Hits

A professional developer with passion for game developing and skill-growing. A former Nuclear Physics Researcher who changed his life to pursue his dreams