From 98a3948bf9944c0f2003d46997c74bbc7b14d909 Mon Sep 17 00:00:00 2001 From: cdemirer <41021322+cdemirer@users.noreply.github.com> Date: Fri, 10 Dec 2021 13:48:00 +0800 Subject: [PATCH] Clarify that replace_by keeps child nodes in tree --- doc/classes/Node.xml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/classes/Node.xml b/doc/classes/Node.xml index 81b94c036d8..22ebbb87f31 100644 --- a/doc/classes/Node.xml +++ b/doc/classes/Node.xml @@ -571,7 +571,8 @@ 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].