Class PaintChunkMeshTransparencyUserToolState
Provides user tool state for painting transparency values onto chunk mesh layers within the terrain editor. Enables users to interactively modify the transparency map of a selected mesh layer.
Inheritance
Implements
Inherited Members
Namespace: Fwt.HexTerrains.UserTools.SM.States
Assembly: fwt.hexterrains.dll
Syntax
public class PaintChunkMeshTransparencyUserToolState : SetValueWithSurfaceReferenceUserToolStateBase<ChunkMeshLayerGroup, ChunkMeshLayer, CellValueDataLayer<bool>, bool>, ISmState
Remarks
This class specializes the base functionality to support editing transparency data on chunk mesh layers. It is typically used in conjunction with terrain editing workflows where surface transparency needs to be adjusted by the user. The tool state manages the selection and modification of transparency values, integrating with the editor's undo/redo and layer management systems.
Constructors
PaintChunkMeshTransparencyUserToolState(ISmState)
Declaration
public PaintChunkMeshTransparencyUserToolState(ISmState parent)
Parameters
| Type | Name | Description |
|---|---|---|
| ISmState | parent |
Properties
UserToolType
Type identifier for the user tool. Allows state machine to change states based on tool type instead of state index.
Declaration
public override int UserToolType { get; }
Property Value
| Type | Description |
|---|---|
| int |
Overrides
Methods
GetDataLayer(ChunkMeshLayer)
Retrieves the data layer associated with the specified terrain layer.
Declaration
public override CellValueDataLayer<bool> GetDataLayer(ChunkMeshLayer terrainLayer)
Parameters
| Type | Name | Description |
|---|---|---|
| ChunkMeshLayer | terrainLayer | The terrain layer for which to obtain the corresponding data layer. Cannot be null. |
Returns
| Type | Description |
|---|---|
| CellValueDataLayer<bool> | The data layer mapped to the given terrain layer. |