summaryrefslogtreecommitdiff
path: root/doc/classes
diff options
context:
space:
mode:
authorreduz <reduzio@gmail.com>2022-02-02 11:22:11 +0100
committerreduz <reduzio@gmail.com>2022-02-02 11:28:11 +0100
commitfbd9599b04086faefbf9796c41869dddbb6abf37 (patch)
tree6960926d8845b6213877f2370efdd0741660c42d /doc/classes
parent050908626f64c0c984e078055215c8b5f6231ce3 (diff)
Add a signal to notify when children nodes enter or exit tree
-Allows more fine grained notifications (hence better performance) than using the global scene tree signals (node added and removed). -Required for #55950
Diffstat (limited to 'doc/classes')
-rw-r--r--doc/classes/Node.xml12
1 files changed, 12 insertions, 0 deletions
diff --git a/doc/classes/Node.xml b/doc/classes/Node.xml
index d714fbc0d5..47be5695a0 100644
--- a/doc/classes/Node.xml
+++ b/doc/classes/Node.xml
@@ -726,6 +726,18 @@
</member>
</members>
<signals>
+ <signal name="child_entered_tree">
+ <argument index="0" name="node" type="Node" />
+ <description>
+ Emitted when a child node enters the scene tree, either because it entered on its own or because this node entered with it.
+ </description>
+ </signal>
+ <signal name="child_exited_tree">
+ <argument index="0" name="node" type="Node" />
+ <description>
+ Emitted when a child node exits the scene tree, either because it exited on its own or because this node exited.
+ </description>
+ </signal>
<signal name="ready">
<description>
Emitted when the node is ready. Comes after [method _ready] callback and follows the same rules.