Attention: Here be dragons
This is the latest
(unstable) version of this documentation, which may document features
not available in or compatible with released stable versions of Godot.
Checking the stable version of the documentation...
ColorPalette
繼承: Resource < RefCounted < Object
用於管理調色板的資源類,可以用 ColorPicker 來載入和儲存。
說明
ColorPalette 資源可用於儲存和管理顏色的合集。常用於需要一組預設顏色的場景,例如建立主題、設計使用者介面、管理遊戲素材等。內建的 ColorPicker 控制項無需額外編寫程式碼就可以使用 ColorPalette。
屬性
|
屬性說明
PackedColorArray colors = PackedColorArray() 🔗
void set_colors(value: PackedColorArray)
PackedColorArray get_colors()
包含調色板中顏色的 PackedColorArray。
Note: The returned array is copied and any changes to it will not update the original property value. See PackedColorArray for more details.