Skip to content

NodeExtensions

Alexis Brooks edited this page Mar 12, 2026 · 3 revisions

void Node.FreeChildren(bool includeInternal = false)

Deletes all children of this Node. If includeInternal is true, internal children are also deleted.

void Node.QueueFreeChildren(bool includeInternal = false)

Queues all children of this Node to be deleted at the end of the current frame. If includeInternal is true, internal children are also queued for deletion.

void Node.RemoveAllChildren()

Removes all children of this Node. The children are not deleted.

void Node.AddSceneChild(PackedScene scene, PackedScene.GenEditState editState = PackedScene.GenEditState.Disabled, bool forceReadableName = false, Node.InternalMode @internal = Node.InternalMode.Disabled)

Adds the given scene as a child Node.