Jelajahi Sumber

Merge pull request #40210 from RantingBob/patch-1

Update Resource.xml to explain behavior of duplicate when subresource…
Rémi Verschelde 5 tahun lalu
induk
melakukan
8894af3908
1 mengubah file dengan 2 tambahan dan 1 penghapusan
  1. 2 1
      doc/classes/Resource.xml

+ 2 - 1
doc/classes/Resource.xml

@@ -23,7 +23,8 @@
 			<argument index="0" name="subresources" type="bool" default="false">
 			<argument index="0" name="subresources" type="bool" default="false">
 			</argument>
 			</argument>
 			<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.
+				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.
 			</description>
 			</description>
 		</method>
 		</method>
 		<method name="get_local_scene" qualifiers="const">
 		<method name="get_local_scene" qualifiers="const">