Class HexSurfaceLayerAuthoring
Base class for authoring components that create hex surface data.
Inheritance
Inherited Members
Namespace: Fwt.HexTerrains.Surfaces
Assembly: fwt.hexterrains.dll
Syntax
public abstract class HexSurfaceLayerAuthoring : MonoBehaviour
Fields
AutoCellBiomeLevels
The levels of the biomes to be calculated based on the cell height. Index = biome ID, value = max height level for this biome.
Declaration
[Tooltip("The levels of the biomes to be calculated based on the cell height. Index = biome ID, value = max height level for this biome.")]
public FixedArray8<int> AutoCellBiomeLevels
Field Value
| Type | Description |
|---|---|
| FixedArray8<int> |
ColorMapTextureIndex
Which index of all ColorTextures to fill with colors of this surface (biomes).
Declaration
[Tooltip("Which index of all ColorTextures to fill with colors of this surface (biomes).")]
public int ColorMapTextureIndex
Field Value
| Type | Description |
|---|---|
| int |
ColorPalette
The color palette to be used for calculating the ColorTexture of this surface.
Declaration
[Tooltip("The color palette to be used for calculating the ColorTexture of this surface.")]
public List<Color> ColorPalette
Field Value
| Type | Description |
|---|---|
| List<Color> |
FillBiomesMapValue
The value to fill the biomes map with (if IsFillBiomesMap) is on.
Declaration
[Tooltip("The value to fill the biomes map with (if IsFillBiomesMap) is on.")]
public int FillBiomesMapValue
Field Value
| Type | Description |
|---|---|
| int |
FillHeightmapValue
The value to fill the heightmap with (if IsFillHeightmap) is on.
Declaration
[Tooltip("The value to fill the heightmap with (if IsFillHeightmap) is on.")]
public int FillHeightmapValue
Field Value
| Type | Description |
|---|---|
| int |
Heightmap
The heightmap texture to apply (if IsApplyHeightmap is on).
Declaration
[Tooltip("The heightmap texture to apply (if IsApplyHeightmap is on).")]
public Texture2D Heightmap
Field Value
| Type | Description |
|---|---|
| Texture2D |
HeightmapOffset
This value will be added to all the heightmap values (if IsApplyHeightmap is on).
Declaration
[Tooltip("This value will be added to all the heightmap values (if IsApplyHeightmap is on).")]
public int HeightmapOffset
Field Value
| Type | Description |
|---|---|
| int |
HeightmapScale
Every value from Heightmap texture will be multiplied by this value (if IsApplyHeightmap is on).
Declaration
[Tooltip("Every value from Heightmap texture will be multiplied by this value (if IsApplyHeightmap is on).")]
public float HeightmapScale
Field Value
| Type | Description |
|---|---|
| float |
IsApplyHeightmap
Whether to apply a heightmap texture.
Declaration
[Tooltip("Whether to apply a heightmap texture.")]
public bool IsApplyHeightmap
Field Value
| Type | Description |
|---|---|
| bool |
IsAutoCellBiomes
Whether to calculate biomes based on the cell height
Declaration
[Tooltip("Whether to calculate biomes based on the cell height")]
public bool IsAutoCellBiomes
Field Value
| Type | Description |
|---|---|
| bool |
IsFillBiomesMap
Whether to fill the biomes map with a specific value.
Declaration
[Tooltip("Whether to fill the biomes map with a specific value.")]
public bool IsFillBiomesMap
Field Value
| Type | Description |
|---|---|
| bool |
IsFillHeightmap
Whether to fill the heightmap with a specific value.
Declaration
[Tooltip("Whether to fill the heightmap with a specific value.")]
public bool IsFillHeightmap
Field Value
| Type | Description |
|---|---|
| bool |
IsRandomBiomesMap
Whether to fill a biomes map with random values.
Declaration
[Tooltip("Whether to fill a biomes map with random values.")]
public bool IsRandomBiomesMap
Field Value
| Type | Description |
|---|---|
| bool |
IsRandomHeightmap
Whether to generate a random heightmap.
Declaration
[Tooltip("Whether to generate a random heightmap.")]
public bool IsRandomHeightmap
Field Value
| Type | Description |
|---|---|
| bool |
MaxRandomBiome
The maximum value for the random biomes.
Declaration
[Tooltip("The maximum value for the random biomes.")]
public int MaxRandomBiome
Field Value
| Type | Description |
|---|---|
| int |
MaxRandomHeight
The maximum value for the random heightmap.
Declaration
[Tooltip("The maximum value for the random heightmap.")]
public int MaxRandomHeight
Field Value
| Type | Description |
|---|---|
| int |
MinRandomBiome
The minimum value for the random biomes.
Declaration
[Tooltip("The minimum value for the random biomes.")]
public int MinRandomBiome
Field Value
| Type | Description |
|---|---|
| int |
MinRandomHeight
The minimum value for the random heightmap.
Declaration
[Tooltip("The minimum value for the random heightmap.")]
public int MinRandomHeight
Field Value
| Type | Description |
|---|---|
| int |