Click or drag to resize

Node_ExitTree Method

Called when the node is about to leave the SceneTree (e.g. upon freeing, scene changing, or after calling RemoveChild(Node) in a script). If the node has children, its _ExitTree callback will be called last, after all its children have left the tree.

Corresponds to the notification in _Notification(Int32) and signal tree_exiting. To get notified when the node has already left the active tree, connect to the tree_exited.

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public virtual void _ExitTree()
See Also