Browse Source

Merge pull request #49213 from Calinou/doc-resource-duplicate-copy-export-only

Document `Resource.duplicate()` only copying exported variables' values
Rémi Verschelde 4 years ago
parent
commit
c9ce5367e3
1 changed files with 1 additions and 0 deletions
  1. 1 0
      doc/classes/Resource.xml

+ 1 - 0
doc/classes/Resource.xml

@@ -27,6 +27,7 @@
 			<description>
 			<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. 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.
 				[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.
+				[b]Note:[/b] When duplicating a resource, only [code]export[/code]ed properties are copied. Other properties will be set to their default value in the new resource.
 			</description>
 			</description>
 		</method>
 		</method>
 		<method name="emit_changed">
 		<method name="emit_changed">