CONTENT CONTRACT · VERSION 1
SwatchColor
A new colour, and optionally material, for one appearance of a prefab's asset.
Signature
{ appearance: AppearanceIndex, color: {ColorChannel}, material: (MaterialId)? }Fields
| Name | Type | Meaning |
|---|---|---|
appearance | AppearanceIndex | Zero-based index into the asset's appearance table. Range: 0…254; Unit: count |
color | {ColorChannel} | Red, green and blue channels in that order. Items: 3…3 |
material | MaterialId | Another voxel material for the appearance (clay tiles for a slate roof); absent: the asset's. Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$; Reference: material |