0 votes

For some reason, eventhough the visible is on, when i add_child(), the child isn't visible

Godot version 3.2.3
in Engine by (31 points)

1 Answer

0 votes
Best answer

Are you talking about in the Editor? addchild() only adds a child after a scene is loaded, and this can vary from when or what function you use to add a child.
If you put the add
child() function in the ready function, it will add whatever child you have decided to its list of children once the node is "ready" (or, basically, pretty much right after the scene is activated)

So basically, add_child() only adds the child at a designated time when you are running your project.

by (204 points)
selected by

chances are they're talking about runtime, not the editor... also having this issue.

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.