Hacker News new | past | comments | ask | show | jobs | submit login

In the docs for Node.remove_child(Node node)[1] it says

"Removes a child node. The node is NOT deleted and must be deleted manually."

Do you still have to queue_free the top node that was removed from the tree, or else how is it being deleted. Or is there a different method to call for removing it from the tree.

BTW: I really like the `_init` / `_enter_tree` / `_ready` / `_exit_tree` lifecycle as was described.

1:https://docs.godotengine.org/en/stable/classes/class_node.ht...




queue_free removes the node from the tree and frees it.

remove_child just deactivates it, but keeps it around in memory for later.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: