ColorPalette



Declaration

public sealed class ColorPalette : ScriptableObject

Description

Represents a palette of colors that can be saved as a Unity asset.

Properties

colorsThe colors that define the palette.
Item[int]Gets or sets the color at the specified index.

Methods

AddAdds a new color to the palette.
RandomReturns a random color from the palette.
ConvertConverts the color palette to a material palette by instantiating a new material for each color.