mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 18:11:19 +03:00
packed*arrays are pass by ref now. support duplicate and update documentation
This commit is contained in:
committed by
Jordan Schidlowsky
parent
2c0d1c3b91
commit
2d56e09276
@@ -5,7 +5,6 @@
|
||||
</brief_description>
|
||||
<description>
|
||||
An [Array] specifically designed to hold [Vector2]. 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>
|
||||
<link title="2D Navigation Astar Demo">https://godotengine.org/asset-library/asset/519</link>
|
||||
@@ -54,6 +53,13 @@
|
||||
Appends a [PackedVector2Array] at the end of this array.
|
||||
</description>
|
||||
</method>
|
||||
<method name="duplicate">
|
||||
<return type="PackedVector2Array">
|
||||
</return>
|
||||
<description>
|
||||
Creates a copy of the array, and returns it.
|
||||
</description>
|
||||
</method>
|
||||
<method name="empty">
|
||||
<return type="bool">
|
||||
</return>
|
||||
|
||||
Reference in New Issue
Block a user