Skip to main content

CosmeticPalette

A class in Root.Township, Alta.Customization.

ScriptableObject list of cosmetic colours (menu Township/Cosmetic/Palette).

Constructors​

MemberWhat it is
CosmeticPalette()Use ScriptableObject.CreateInstance instead of new; Unity loads the saved ones from assets.

Fields​

2 private and internal fields
MemberWhat it is
private CosmeticColor[] colorsBacking field for Colors.
private Texture2D fromImageSource texture for the palette. Not read by the code in this build.

Properties​

MemberWhat it is
CosmeticColor[] Colors { get; }The palette's colours.

Methods​

1 private and internal method
MemberWhat it is
private void OnValidate()Empty in this build.

Used in​

Members of other types that take, return or hold a CosmeticPalette: