Class ColorMapDataLayer
Extends CellColorsDataLayer to provide a color palette to be used in calculate colors job.
Inheritance
NativeListChunkedDataLayer<Color32>
HexTerrainNativeListChunkedDataLayer<Color32>
ColorMapDataLayer
Inherited Members
Namespace: Fwt.HexTerrains.DataLayers
Assembly: fwt.hexterrains.dll
Syntax
public class ColorMapDataLayer : CellColorsDataLayer, IDisposable, ICommitChanges, IListDataLayer<Color32>
Properties
ColorPalette
Palette of colors for the cell values. Exact usage is dependent on the job that calculates a color for each cell value. Used to calculate the ColorMap data layer ColorMap, which is used to fill a ColorTexture to be placed on UI or in terrain materials.
Declaration
public NativeList<Color32> ColorPalette { get; set; }
Property Value
| Type | Description |
|---|---|
| NativeList<Color32> |
Methods
Dispose()
Disposes the data layer, calls DisposeAllItems() DisposeAllItems()
Declaration
public override void Dispose()
Overrides
InitColorPalette(IList<Color32>)
Declaration
public virtual void InitColorPalette(IList<Color32> copyColorPaletteFrom)
Parameters
| Type | Name | Description |
|---|---|---|
| IList<Color32> | copyColorPaletteFrom |
InitColorPalette(NativeArray<Color32>)
Declaration
public virtual void InitColorPalette(NativeArray<Color32> copyColorPaletteFrom)
Parameters
| Type | Name | Description |
|---|---|---|
| NativeArray<Color32> | copyColorPaletteFrom |