diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2020-12-21 17:30:01 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-21 17:30:01 +0100 |
commit | 6532596d97d90474738283e0f2662719d10aaac0 (patch) | |
tree | cb39cd13521cae7b28c8e083a673ed52a9381274 /doc/classes/PackedColorArray.xml | |
parent | 0923494c78130d69ff6d53737c53e5b6cfc163a2 (diff) | |
parent | 2d56e092765affde1904e76fe912329db0e9eab6 (diff) |
Merge pull request #44472 from winterpixelgames/PR-duplicate-packedarrays
Add support for duplicate() for Packed*Array, and they are pass by ref in godot 4.0
Diffstat (limited to 'doc/classes/PackedColorArray.xml')
-rw-r--r-- | doc/classes/PackedColorArray.xml | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/doc/classes/PackedColorArray.xml b/doc/classes/PackedColorArray.xml index 3065d16945..b45e2cbe2e 100644 --- a/doc/classes/PackedColorArray.xml +++ b/doc/classes/PackedColorArray.xml @@ -5,7 +5,6 @@ </brief_description> <description> An [Array] specifically designed to hold [Color]. Packs data tightly, so it saves memory for large array sizes. - [b]Note:[/b] This type is passed by value and not by reference. </description> <tutorials> </tutorials> @@ -53,6 +52,13 @@ Appends a [PackedColorArray] at the end of this array. </description> </method> + <method name="duplicate"> + <return type="PackedColorArray"> + </return> + <description> + Creates a copy of the array, and returns it. + </description> + </method> <method name="empty"> <return type="bool"> </return> |