Skip to content

ProgressBar

Inherits: Range < Control < CanvasItem < Entity < Object

A control used for visual representation of a percentage.

A control used for visual representation of a percentage. Shows the fill percentage in the center. Can also be used to show indeterminate progress. For more fill modes, use TextureProgressBar instead.

Type Name Default
bool editor_preview_indeterminate
int fill_mode 0
bool indeterminate false
bool show_percentage true

FillMode

enum FillMode

FILL_BEGIN_TO_END = 0

The progress bar fills from begin to end horizontally, according to the language direction. If Control.is_layout_rtl() returns false, it fills from left to right, and if it returns true, it fills from right to left.

FILL_END_TO_BEGIN = 1

The progress bar fills from end to begin horizontally, according to the language direction. If Control.is_layout_rtl() returns false, it fills from right to left, and if it returns true, it fills from left to right.

FILL_TOP_TO_BOTTOM = 2

The progress fills from top to bottom.

FILL_BOTTOM_TO_TOP = 3

The progress fills from bottom to top.

font_color

Color font_color (color) = Color(0.95, 0.95, 0.95, 1)

font_outline_color

Color font_outline_color (color) = Color(0, 0, 0, 1)

outline_size

int outline_size (constant) = 0

font

Font font (font)

font_size

int font_size (font_size)

background

StyleBox background (style)

fill

StyleBox fill (style)

editor_preview_indeterminate

bool editor_preview_indeterminate

If false, the indeterminate animation will be paused in the editor.

fill_mode

int fill_mode = 0

The fill direction. See FillMode for possible values.

indeterminate

bool indeterminate = false

When set to true, the progress bar indicates that something is happening with an animation, but does not show the fill percentage or value.

show_percentage

bool show_percentage = true

If true, the fill percentage is displayed on the bar.