0 votes

I have made a dialogue box, that shall pop up if the player wants to interact with an npc. I simply attached a control node to the player, added a canvas layer and put a Texture rect into the canvas. But now it stays visible persistently, even if I toggle invisibilty in the editor.
Is this the wrong node type or am I missing something?
I can't make the texture disspear.
If there are better approaches, I am open for advice.

in Engine by (56 points)

It should disappear when you toggle visibility. Can I see the node hierarchy and what node you're toggling?

1 Answer

0 votes

When you run your game through the Editor, a "Remote" tab appears above the scene tree view. You can use it to easily inspect what is happening in your Scene.

Note that while the "hidden" property of CanvasItems and derived classes is inherited from parent to child, a non-CanvasItem in the chain will break it (like in: Button parent of Node parent of Button).

If you really can not get the visible property to work, you can try setting the modulate property to a color with 0 in opacity.

by (2,628 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 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.