MoveByStep||doc136517

September 20, 2022

Format

Slider.MoveByStep

Describe

Whether to use step move. The default value is true.
If used, each time you click the progress bar on both sides of the slider, the distance the slider moves is the step slider ClickStep 。
If it is not used, the slider will directly move to the click position when clicking the progress bar.

Code Example

image.png

-- create layout window
local APIRootWindow = UI:CreateGUIWindow("API")

--Set the window to the root node of the UI
APIRootWindow.Parent = UI.Root

--Get the Slider control for testing according to the name
local slider = APIRootWindow.APISlider

--Set the slider control to move according to the step
slider.MoveByStep = true