Skip to content

Commit 314e084

Browse files
committed
Clarify that Node.duplicate() copies children recursively
Fixes godotengine#95895
1 parent 3f5b871 commit 314e084

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/classes/Node.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@
280280
<return type="Node" />
281281
<param index="0" name="flags" type="int" default="15" />
282282
<description>
283-
Duplicates the node, returning a new node with all of its properties, signals, groups, and children copied from the original. The behavior can be tweaked through the [param flags] (see [enum DuplicateFlags]). Internal nodes are not duplicated.
283+
Duplicates the node, returning a new node with all of its properties, signals, groups, and children copied from the original, recursively. The behavior can be tweaked through the [param flags] (see [enum DuplicateFlags]). Internal nodes are not duplicated.
284284
[b]Note:[/b] For nodes with a [Script] attached, if [method Object._init] has been defined with required parameters, the duplicated node will not have a [Script].
285285
[b]Note:[/b] By default, this method will duplicate only properties marked for serialization (i.e. using [constant @GlobalScope.PROPERTY_USAGE_STORAGE], or in GDScript, [annotation @GDScript.@export]). If you want to duplicate all properties, use [constant DUPLICATE_INTERNAL_STATE].
286286
</description>

0 commit comments

Comments
 (0)