A UI Slider is a graphical tool that allows a user to set the numerical value of an object:

Figure 2.13 – Example of a UI Slider
This recipe illustrates how to create an interactive UI Slider and execute a C# method each time the user changes the UI Slider value.