Mention that replace_by doesn't free the node

This commit is contained in:
kobewi 2021-11-23 12:53:31 +01:00
parent a8c305acfa
commit 58a3ea5453

View file

@ -571,6 +571,7 @@
<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].
</description>
</method>
<method name="request_ready">