summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorMax Hilbrunner <mhilbrunner@users.noreply.github.com>2021-12-15 03:28:37 +0100
committerGitHub <noreply@github.com>2021-12-15 03:28:37 +0100
commit9d81bfea7431b70b21e326af78a1c75c10e37368 (patch)
treec453462b1ed7af868e5a47ada45248aebec9071a /doc
parent494bbcff0be39e9f5c627c0fce9fe890b065fb9a (diff)
parent98a3948bf9944c0f2003d46997c74bbc7b14d909 (diff)
Merge pull request #55777 from cdemirer/doc-replace_by
Clarify that replace_by keeps child nodes in tree
Diffstat (limited to 'doc')
-rw-r--r--doc/classes/Node.xml3
1 files changed, 2 insertions, 1 deletions
diff --git a/doc/classes/Node.xml b/doc/classes/Node.xml
index 81b94c036d..22ebbb87f3 100644
--- a/doc/classes/Node.xml
+++ b/doc/classes/Node.xml
@@ -571,7 +571,8 @@
<description>
Replaces a node in a scene by the given one. Subscriptions that pass through this node will be lost.
If [code]keep_groups[/code] is [code]true[/code], the [code]node[/code] is added to the same groups that the replaced node is in.
- Note that the replaced node is not automatically freed, so you either need to keep it in a variable for later use or free it using [method Object.free].
+ [b]Note:[/b] The given node will become the new parent of any child nodes that the replaced node had.
+ [b]Note:[/b] The replaced node is not automatically freed, so you either need to keep it in a variable for later use or free it using [method Object.free].
</description>
</method>
<method name="request_ready">