Document initializing PackedVectorArray/PackedColorArray correctly

This commit is contained in:
Hugo Locurcio
2022-07-12 19:26:10 +02:00
parent 33957aee69
commit 84a3fd9daa
3 changed files with 12 additions and 0 deletions
+4
View File
@@ -27,6 +27,10 @@
<param index="0" name="from" type="Array" />
<description>
Constructs a new [PackedVector3Array]. Optionally, you can pass in a generic [Array] that will be converted.
[b]Note:[/b] When initializing a [PackedVector3Array] with elements, it must be initialized with an [Array] of [Vector3] values:
[codeblock]
var array = PackedVector3Array([Vector3(12, 34, 56), Vector3(78, 90, 12)])
[/codeblock]
</description>
</constructor>
</constructors>