Scrollbar
A scrollbar to help making a scroll view.
Authors and contributors to this experimental extension: D8H, Jurfix, Alios.
Warning
This is an extension made by a community member and it only got through a light review by the GDevelop extension team. As such, we can't guarantee it meets all the quality standards of fully reviewed extensions.
A scrollbar to help making a scroll view.
An example of scroll view can be found in the multiplayer custom lobbies extension.
Tip
Learn how to install new extensions by following a step-by-step guide.
Scrollbar
A scrollbar to help making a scroll view.
Object actions
Content length
Change the content length of the object. The length of the content to scroll. The scroll bar don't actually scroll the content. You have to do it yourself with camera actions.
See parameters
- Parameter 0: 👾 Object
- Parameter 1: 🟰 Operator
- Parameter 2 (🔢 Number): Value
Technical note: parameter 3 are internal parameters handled by GDevelop.
Scroll position
Change the scroll position.
See parameters
- Parameter 0: 👾 Object
- Parameter 1: 🟰 Operator
- Parameter 2 (🔢 Number): Value
Technical note: parameter 3 are internal parameters handled by GDevelop.
Object conditions
Content length
Compare the content length of the object. The length of the content to scroll. The scroll bar don't actually scroll the content. You have to do it yourself with camera actions.
See parameters
- Parameter 0: 👾 Object
- Parameter 1: 🟰 Relational operator
- Parameter 2 (🔢 Number): Value to compare
Technical note: parameter 3 are internal parameters handled by GDevelop.
Scrolling is required
Check if the content is big enough to require scrolling.
See parameters
- Parameter 0: 👾 Object
Technical note: parameter 1 are internal parameters handled by GDevelop.
Thumb is dragged
Check if the thumb of the scrollbar is dragged.
See parameters
- Parameter 0: 👾 Object
Technical note: parameter 1 are internal parameters handled by GDevelop.
Scroll position
Compare the scroll position.
See parameters
- Parameter 0: 👾 Object
- Parameter 1: 🟰 Relational operator
- Parameter 2 (🔢 Number): Value to compare
Technical note: parameter 3 are internal parameters handled by GDevelop.
Object expressions
Expression | Description | |
---|---|---|
Object.ContentLength() |
Return the content length of the object. The length of the content to scroll. The scroll bar don't actually scroll the content. You have to do it yourself with camera actions. | |
Object.ScrollPosition() |
Return the scroll position. |
This page is an auto-generated reference page about the Scrollbar extension, made by the community of GDevelop, the open-source, cross-platform game engine designed for everyone. Learn more about all GDevelop community-made extensions here.