Control nodes blocking touchscreen/mouse

Godot Version

Godot 4.2.2

Question

I have scroll container and a lot stuff inside it, is there a convenient/way to disable nodes like control/richLabelText/TextureRect from blocking touch/mouse inputs without going by each of them and changing mouse-filter to"ignore" ?

I have tried to wrap all children of the scroll container in a control node and make him to ignore mouse by mouse-filter, but that didn’t affect children.

Can you add a script to your wrapper’s _ready() method to get children and set the mouse filter property accordingly.

Well, thats one way to do it, but there could be (and will be) huge nested lvl, which leads to recursive, fast but… I was hoping for something simpler

Another way you can do it is select all the control nodes you want ignored and in Inspector set the mouse_filter to ignore.

1 Like