Attention: Here be dragons
This is the latest
(unstable) version of this documentation, which may document features
not available in or compatible with released stable versions of Godot.
Checking the stable version of the documentation...
PackedStringArray¶
A packed array of Strings.
Description¶
An array specifically designed to hold Strings. Packs data tightly, so it saves memory for large array sizes.
If you want to join the strings in the array, use String.join.
var string_array = PackedStringArray(["hello", "world"])
var string = " ".join(string_array)
print(string) # "hello world"
Примітка
There are notable differences when using this API with C#. See Відмінності API C# в GDScript for more information.
Tutorials¶
Constructors¶
PackedStringArray ( PackedStringArray from ) |
|
PackedStringArray ( Array from ) |
Methods¶
void |
append_array ( PackedStringArray array ) |
void |
clear ( ) |
duplicate ( ) |
|
void |
|
is_empty ( ) const |
|
void |
|
void |
reverse ( ) |
void |
|
size ( ) const |
|
void |
sort ( ) |
to_byte_array ( ) const |
Operators¶
operator != ( PackedStringArray right ) |
|
operator + ( PackedStringArray right ) |
|
operator == ( PackedStringArray right ) |
|
operator [] ( int index ) |
Constructor Descriptions¶
PackedStringArray PackedStringArray ( )
Constructs an empty PackedStringArray.