GodotObject.free

Deletes the object from memory immediately. For Nodes, you may want to use Node.queueFree to queue the node for safe deletion at the end of the current frame. Important: If you have a variable pointing to an object, it will not be assigned to null once the object 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 GodotObject
@nogc nothrow
void
free
()

Meta