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 ) |
|