Browse Source

Merge pull request #55257 from KoBeWi/replace_by_void

Rémi Verschelde 4 years ago
parent
commit
0cec0d3517
1 changed files with 1 additions and 0 deletions
  1. 1 0
      doc/classes/Node.xml

+ 1 - 0
doc/classes/Node.xml

@@ -571,6 +571,7 @@
 			<description>
 			<description>
 				Replaces a node in a scene by the given one. Subscriptions that pass through this node will be lost.
 				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.
 				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].
 			</description>
 			</description>
 		</method>
 		</method>
 		<method name="request_ready">
 		<method name="request_ready">