mirror of
https://github.com/godotengine/godot.git
synced 2024-11-26 06:03:38 +00:00
clarify what duplicate does and its limitations
This commit is contained in:
parent
828d1ea59e
commit
a6108f8a3d
@ -25,7 +25,8 @@
|
||||
<argument index="0" name="subresources" type="bool" default="false">
|
||||
</argument>
|
||||
<description>
|
||||
Duplicates the resource, returning a new resource. By default, sub-resources are shared between resource copies for efficiency. This can be changed by passing [code]true[/code] to the [code]subresources[/code] argument which will copy the subresources.
|
||||
Duplicates the resource, returning a new resource with the exported members copied. [b]Note:[/b] To duplicate the resource the constructor is called without arguments. This method will error when the constructor doesn't have default values.
|
||||
By default, sub-resources are shared between resource copies for efficiency. This can be changed by passing [code]true[/code] to the [code]subresources[/code] argument which will copy the subresources.
|
||||
[b]Note:[/b] If [code]subresources[/code] is [code]true[/code], this method will only perform a shallow copy. Nested resources within subresources will not be duplicated and will still be shared.
|
||||
</description>
|
||||
</method>
|
||||
|
Loading…
Reference in New Issue
Block a user