ScrollContainer. Hiding the actual scrollbar?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Robster
:warning: Old Version Published before Godot 3 was released.

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.

:bust_in_silhouette: Reply From: Nophlock

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

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)

Robster | 2018-02-12 23:04

:bust_in_silhouette: Reply From: isdev

Scroll bars don’t look very good on the mobile devices… =\

If you are building from source comment out

v_scroll->show();
and
h_scroll->show()

around line 360 scroll_container.cpp (godot 3.0.2)

:bust_in_silhouette: Reply From: Diet Estus

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.