+3 votes

I've finally found out how to use the scrollContainer. Very nice.

I am using it to scroll through my "level select" screen. The problem is a big, ugly dark scrollbar appears on the right hand side as I scroll up and down vertically.

Can anyone offer a pointer on how to remove or hide the scroll bar?

Thanks so much.

in Engine by (815 points)

3 Answers

–2 votes

I actually stumbled across the same problem, so I wonder if you found a good solution for this?

by (183 points)

I ended up making the scrollbar portion of the control outside of the screen area. So it was hidden. Crappy but what had to happen. In the end though, due to a reason I can't recall I had to cancel that approach also. This is what I was left with: http://www.video-games.io/break-out/ (the level select screen)

+1 vote

Scroll bars don't look very good on the mobile devices... =\

If you are building from source comment out


around line 360 scroll_container.cpp (godot 3.0.2)

by (22 points)
+1 vote

You can create a custom theme and simply make the scroll bar invisible.

A theme is a file defining the visual features of all the control elements. You can set the ScrollContainer's theme from the inspector. Create a new theme and set the scroll bar's colors to invisible.

This is what I do to hide the scroll bar.

by (1,530 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.