summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorThaddeus Crews <repiteo@outlook.com>2024-10-10 18:13:19 -0500
committerThaddeus Crews <repiteo@outlook.com>2024-10-10 18:13:19 -0500
commitcc3542e675e84a51121160112f04a16b32f845de (patch)
tree79bf2890a97e0f357e0c8ee584e3fa666832c9cf /doc
parent147ccfeb4ecc01b0cc497b4bc54e0e80607198ff (diff)
parentc72cf350ac7081d6316dbcc4657c9fe1dff4e976 (diff)
downloadredot-engine-cc3542e675e84a51121160112f04a16b32f845de.tar.gz
Merge pull request #97835 from krm01/typo-docs-packedvector2array
Fix small typo on PackedVector2Array docs
Diffstat (limited to 'doc')
-rw-r--r--doc/classes/PackedVector2Array.xml2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/classes/PackedVector2Array.xml b/doc/classes/PackedVector2Array.xml
index da41812e0b..4d487b6dc2 100644
--- a/doc/classes/PackedVector2Array.xml
+++ b/doc/classes/PackedVector2Array.xml
@@ -5,7 +5,7 @@
</brief_description>
<description>
An array specifically designed to hold [Vector2]. Packs data tightly, so it saves memory for large array sizes.
- [b]Differences between packed arrays, typed arrays, and untyped arrays:[/b] Packed arrays are generally faster to iterate on and modify compared to a typed array of the same type (e.g. [PackedVector3Array] versus [code]Array[Vector2][/code]). Also, packed arrays consume less memory. As a downside, packed arrays are less flexible as they don't offer as many convenience methods such as [method Array.map]. Typed arrays are in turn faster to iterate on and modify than untyped arrays.
+ [b]Differences between packed arrays, typed arrays, and untyped arrays:[/b] Packed arrays are generally faster to iterate on and modify compared to a typed array of the same type (e.g. [PackedVector2Array] versus [code]Array[Vector2][/code]). Also, packed arrays consume less memory. As a downside, packed arrays are less flexible as they don't offer as many convenience methods such as [method Array.map]. Typed arrays are in turn faster to iterate on and modify than untyped arrays.
[b]Note:[/b] Packed arrays are always passed by reference. To get a copy of an array that can be modified independently of the original array, use [method duplicate]. This is [i]not[/i] the case for built-in properties and methods. The returned packed array of these are a copies, and changing it will [i]not[/i] affect the original value. To update a built-in property you need to modify the returned array, and then assign it to the property again.
</description>
<tutorials>