Struct CellItemConfigAuthoring
Authoring structure where the cell item prefab is defined.
Inherited Members
Namespace: Fwt.HexTerrains.CellItems
Assembly: fwt.hexterrains.dll
Syntax
[Serializable]
public struct CellItemConfigAuthoring
Fields
Color
This color is used on minimap and color maps
Declaration
[Tooltip("This color is used on minimap and color maps")]
public Color32 Color
Field Value
| Type | Description |
|---|---|
| Color32 |
Name
Name of the Cell Item
Declaration
[Tooltip("Name of the Cell Item")]
public string Name
Field Value
| Type | Description |
|---|---|
| string |
States
The index of the item in the list == CellItemConfig.Index
Declaration
[Tooltip("The index of the item in the list == CellItem.State")]
public List<CellItemPrefabAuthoring> States
Field Value
| Type | Description |
|---|---|
| List<CellItemPrefabAuthoring> |
Methods
ExtractCellItemConfig(int, RenderEntitiesConfig, Action<GameObject>)
Extracts the CellItemConfig from the authoring data.
Declaration
public CellItemConfig ExtractCellItemConfig(int index, RenderEntitiesConfig renderEntities, Action<GameObject> registerPrefabForBakingCallback)
Parameters
| Type | Name | Description |
|---|---|---|
| int | index | index of the cell item it will be registered under |
| RenderEntitiesConfig | renderEntities | render entities config to register meshes and materials in |
| Action<GameObject> | registerPrefabForBakingCallback |
Returns
| Type | Description |
|---|---|
| CellItemConfig |