0 votes

I currently have a TabContainer and Node2D inside of a Viewport inside of a ViewportContainer which is inside the aforementioned TabContainer. The Node2D takes mouse inputs so I had to set the TabContainer mouse filter to ignore and now I can't change tabs. If I set the mouse filter to anything but ignore I can't send inputs to Node2D but if it's set to ignore I can't change tabs. What do I do to get both working?

Godot version 3.3 Stable
in Engine by (24 points)
edited by

make sure all things that could be obscuring the object from the mouse are also set to ignore

Yes they are all set to ignore

1 Answer

0 votes

try putting the tabcontainer lower in the tree, or put it in a canvaslayer

by (50 points)

The TabContainer has the Node2D inside of it. I tried putting the group into a canvaslayer but it doesn't do anything and putting the tabcontainer lower doesnt either.

This is the tree:
-Root
--TabContainer
---ViewportContainer
----Viewport
-----Node2D

thats weird, i dont know to be honest, it looks like it should work, maybe in gdscript, when you hover over the tabs, it gets mouse input, and when you hover over the node2d, the node2d gets the mouse input, im not sure if it will work like this but you could try

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 Frequently asked questions and 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 [email protected] with your username.