Work in progress

Godot documentation is being updated to reflect the latest changes in version 4.0. Some documentation pages may still state outdated information. This banner will tell you if you're reading one of such pages.

The contents of this page are up to date. If you can still find outdated information, please open an issue.

VScrollBar

Inherits: ScrollBar < Range < Control < CanvasItem < Node < Object

Vertical scroll bar.

Description

Vertical version of ScrollBar, which goes from top (min) to bottom (max).

Properties

SizeFlags

size_flags_horizontal

0 (overrides Control)

SizeFlags

size_flags_vertical

1 (overrides Control)

Theme Properties

Texture2D

decrement

Texture2D

decrement_highlight

Texture2D

decrement_pressed

Texture2D

increment

Texture2D

increment_highlight

Texture2D

increment_pressed

StyleBox

grabber

StyleBox

grabber_highlight

StyleBox

grabber_pressed

StyleBox

scroll

StyleBox

scroll_focus


Theme Property Descriptions

Texture2D decrement

Icon used as a button to scroll the ScrollBar up. Supports custom step using the ScrollBar.custom_step property.


Texture2D decrement_highlight

Displayed when the mouse cursor hovers over the decrement button.


Texture2D decrement_pressed

Displayed when the decrement button is being pressed.


Texture2D increment

Icon used as a button to scroll the ScrollBar down. Supports custom step using the ScrollBar.custom_step property.


Texture2D increment_highlight

Displayed when the mouse cursor hovers over the increment button.


Texture2D increment_pressed

Displayed when the increment button is being pressed.


StyleBox grabber

Used as texture for the grabber, the draggable element representing current scroll.


StyleBox grabber_highlight

Used when the mouse hovers over the grabber.


StyleBox grabber_pressed

Used when the grabber is being dragged.


StyleBox scroll

Used as background of this ScrollBar.


StyleBox scroll_focus

Used as background when the ScrollBar has the GUI focus.