소스 검색

Merge pull request #60922 from KoBeWi/JoinedStringArray

Rémi Verschelde 3 년 전
부모
커밋
72eb1b876a
1개의 변경된 파일6개의 추가작업 그리고 0개의 파일을 삭제
  1. 6 0
      doc/classes/PackedStringArray.xml

+ 6 - 0
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>