Click or drag to resize

NodeDuplicate Method

Duplicates the node, returning a new node.

You can fine-tune the behavior using the flags (see NodeDuplicateFlags).

Note: It will not work properly if the node contains a script with constructor arguments (i.e. needs to supply arguments to method). In that case, the node will be duplicated without a script.

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public Node Duplicate(
	int flags = 15
)

Parameters

flags (Optional)
Type: SystemInt32

[Missing <param name="flags"/> documentation for "M:Godot.Node.Duplicate(System.Int32)"]

Return Value

Type: Node

[Missing <returns> documentation for "M:Godot.Node.Duplicate(System.Int32)"]

See Also