From 314e084d335a8d145cdce549893b8ffa9877457d Mon Sep 17 00:00:00 2001 From: Amogh-2404 Date: Tue, 18 Nov 2025 16:06:21 +0530 Subject: [PATCH] Clarify that Node.duplicate() copies children recursively Fixes #95895 --- doc/classes/Node.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/classes/Node.xml b/doc/classes/Node.xml index aece3c75a67..902c9fd5267 100644 --- a/doc/classes/Node.xml +++ b/doc/classes/Node.xml @@ -280,7 +280,7 @@ - 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. + 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. [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]. [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].