MaterialPalette



Declaration

public sealed class MaterialPalette : ScriptableObject

Description

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

Properties

materialsThe materials that define the palette.
Item[int]Gets or sets the material at the specified index.

Methods

AddAdds a new material to the palette.
RandomReturns a random material from the palette.
ConvertConverts the material palette to a color palette using each material's main color.