summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2022-05-10 16:42:04 +0200
committerGitHub <noreply@github.com>2022-05-10 16:42:04 +0200
commit72eb1b876ac8688058d5020911276a5ab4308145 (patch)
tree09e150010abc3b376f54cbb29c49c7c108494806
parentb95042a3aad202bd646e74e90fc866e126bf4fe7 (diff)
parent3da7dda854509930e798a594c46c982026863031 (diff)
Merge pull request #60922 from KoBeWi/JoinedStringArray
-rw-r--r--doc/classes/PackedStringArray.xml6
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/classes/PackedStringArray.xml b/doc/classes/PackedStringArray.xml
index d0f1d5f753..a4653344f0 100644
--- a/doc/classes/PackedStringArray.xml
+++ b/doc/classes/PackedStringArray.xml
@@ -5,6 +5,12 @@
</brief_description>
<description>
An array specifically designed to hold [String]s. Packs data tightly, so it saves memory for large array sizes.
+ If you want to join the strings in the array, use [method String.join].
+ [codeblock]
+ var string_array = PackedStringArray(["hello", "world"])
+ var string = " ".join(string_array)
+ print(string) # "hello world"
+ [/codeblock]
</description>
<tutorials>
<link title="OS Test Demo">https://godotengine.org/asset-library/asset/677</link>