Progress||doc136507

September 20, 2022

Format

ProgressBar.Progress

Describe

This attribute determines the current progress of the progress bar. The range of progress is 0 ~ 1.

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 ProgressBar control for testing according to the name
local progress = APIRootWindow.APIProgressBar

--Set the progress of the progress bar control
progress.Progress = 1