This recipe illustrates how to create an interactive UI Slider, and execute a C# method each time the user changes the UI Slider value: