TilemapRules
TilemapRules : ScriptableObject
This class provides the container for any created CellDataRules. It is used to compare tiles with
CellDataRules
during the tilemap scanning process while initializing TilemapExtended.
An instance can be created in the editor by:
Right click > Create > TilemapExtended > TilemapRulesContainer.
Please refer to the tutorial if you wish to learn how to link CellData with Unity tiles.
Properties
Public
Name | Type | Description |
---|---|---|
tileRules | CellDataRule[] | Array holding CellDataRules |
Public methods
GetRuleDictionary
public Dictionary<TileBase, CellData> GetRuleDictionary()
Returns a dictionary which links all TileBases contained in a CellDataRule in the container to its specified CellData instance. This dictionary is used during tilemap scanning to easily retrieve the linked CellData instance and to detect if a TileBase has no associated CellData.