Up to date
This page is up to date for Godot 4.2
.
If you still find outdated information, please open an issue.
PackedVector2Array¶
A packed array of Vector2s.
Description¶
An array specifically designed to hold Vector2. Packs data tightly, so it saves memory for large array sizes.
Примітка
There are notable differences when using this API with C#. See Відмінності API C# в GDScript for more information.
Tutorials¶
Constructors¶
PackedVector2Array ( PackedVector2Array from ) |
|
PackedVector2Array ( Array from ) |
Methods¶
void |
append_array ( PackedVector2Array array ) |
void |
clear ( ) |
duplicate ( ) |
|
void |
|
is_empty ( ) const |
|
void |
|
void |
reverse ( ) |
void |
|
size ( ) const |
|
void |
sort ( ) |
to_byte_array ( ) const |
Operators¶
operator != ( PackedVector2Array right ) |
|
operator * ( Transform2D right ) |
|
operator + ( PackedVector2Array right ) |
|
operator == ( PackedVector2Array right ) |
|
operator [] ( int index ) |
Constructor Descriptions¶
PackedVector2Array PackedVector2Array ( )
Constructs an empty PackedVector2Array.
PackedVector2Array PackedVector2Array ( PackedVector2Array from )
Constructs a PackedVector2Array as a copy of the given PackedVector2Array.