add_child() not visible

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

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

:bust_in_silhouette: Reply From: TheJokingJack

Are you talking about in the Editor? add_child() 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.

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

reydev | 2022-08-17 15:31