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.free. Use GodotObject.isQueuedForDeletion to check whether a node will be deleted at the end of the frame. Important: If you have a variable pointing to a node, it will not be assigned to null once the node is freed. Instead, it will point to a previously freed instance and you should validate it with @GDScript.isInstanceValid before attempting to call its methods or access its properties.

struct Node
@nogc nothrow
void
queueFree
()

Meta