Function Node.queueFree
Queues a node for deletion at the end of the current frame. When deleted, all of its child nodes will be deleted as well. This method ensures it's safe to delete the node, contrary to GodotObject
. Use GodotObject
to check whether a node will be deleted at the end of the frame.
void queueFree() nothrow @nogc;