Click or drag to resize

ResourceDuplicate Method

Duplicates the resource, returning a new resource. By default, sub-resources are shared between resource copies for efficiency. This can be changed by passing true to the subresources argument which will copy the subresources.

Note: If subresources is true, this method will only perform a shallow copy. Nested resources within subresources will not be duplicated and will still be shared.

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public Resource Duplicate(
	bool subresources = false
)

Parameters

subresources (Optional)
Type: SystemBoolean

[Missing <param name="subresources"/> documentation for "M:Godot.Resource.Duplicate(System.Boolean)"]

Return Value

Type: Resource

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

See Also