Hide part of scroll container

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By pferft

Hi everyone,

my ScrollContainer has a VboxContainer (filled with all kinds of stuff) as a child. Now I would like to place an invisible shape on top (a small circle or square) that hides everything scrolling by underneath.
Is there any simple way to achive this, maybe by using a shader or rather a light- or cull-mask?

It appears not to be a trivial issue at all…
I tried this:

func _draw():


which works even with sprites, but only with the rectangular bounding box and not with any shape the sprite might offer.
I hear the issue will be addressed in version 4 though.