ColorPalette
Class in Zigurous.ColorPro
Declaration
public sealed class ColorPalette : ScriptableObject
Description
Represents a palette of colors that can be saved as a Unity asset.
Properties
colors | The colors that define the palette. |
Item[int] | Gets or sets the color at the specified index. |
Methods
Add | Adds a new color to the palette. |
Random | Returns a random color from the palette. |
Convert | Converts the color palette to a material palette by instantiating a new material for each color. |