CellDataRule
This class is used to link your created CellData to any Unity tiles you wish.
Please refer to the tutorial if you wish to learn how to link CellData with Unity tiles.
note
This class stores an array of TilePreview. Please note, TilePreview
just holds a reference to a Unity Tile
.
The design intention was to provide a custom PropertyDrawer in order to show a preview of Tile
in the CellDataRule.
TilePreview
only exists to not interfere with Unity's Tile
class by avoiding to override their provided PropertyDrawer.
Properties
Public
Name | Type | Description |
---|---|---|
tiles | TilePreview[] | The Unity tiles you wish to link to cellData |
cellData | CellData | The CellData instance you wish to link |