mirror of
https://github.com/godotengine/godot.git
synced 2026-02-07 19:32:36 +00:00
Document initializing PackedVectorArray/PackedColorArray correctly
This commit is contained in:
@@ -27,6 +27,10 @@
|
||||
<param index="0" name="from" type="Array" />
|
||||
<description>
|
||||
Constructs a new [PackedColorArray]. Optionally, you can pass in a generic [Array] that will be converted.
|
||||
[b]Note:[/b] When initializing a [PackedColorArray] with elements, it must be initialized with an [Array] of [Color] values:
|
||||
[codeblock]
|
||||
var array = PackedColorArray([Color(0.1, 0.2, 0.3), Color(0.4, 0.5, 0.6)])
|
||||
[/codeblock]
|
||||
</description>
|
||||
</constructor>
|
||||
</constructors>
|
||||
|
||||
Reference in New Issue
Block a user