CosmeticPalette
A class in Root.Township, Alta.Customization.
ScriptableObject list of cosmetic colours (menu Township/Cosmetic/Palette).
- Listed in Customization and screenshots
- Inherits or implements
GeneralValue - Attributes
CreateAssetMenu
Constructors
| Member | What it is |
|---|---|
CosmeticPalette() | Use ScriptableObject.CreateInstance instead of new; Unity loads the saved ones from assets. |
Fields
2 private and internal fields
| Member | What it is |
|---|---|
private CosmeticColor[] colors | Backing field for Colors. |
private Texture2D fromImage | Source texture for the palette. Not read by the code in this build. |
Properties
| Member | What it is |
|---|---|
CosmeticColor[] Colors { get; } | The palette's colours. |
Methods
Used in
Members of other types that take, return or hold a CosmeticPalette: