From 3da7dda854509930e798a594c46c982026863031 Mon Sep 17 00:00:00 2001 From: kobewi Date: Tue, 10 May 2022 13:56:31 +0200 Subject: [PATCH] Mention how to join PackedStringArray --- doc/classes/PackedStringArray.xml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/doc/classes/PackedStringArray.xml b/doc/classes/PackedStringArray.xml index d0f1d5f7536..a4653344f0d 100644 --- a/doc/classes/PackedStringArray.xml +++ b/doc/classes/PackedStringArray.xml @@ -5,6 +5,12 @@ 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] https://godotengine.org/asset-library/asset/677