i'm making a tile-based game and the tiles have a propertie calles
TileType. I inherited the
Tileset class and added an array that can map
tile id to
TileType, so i can set the
Tiletype for every tile and Tileset and save it to the
Tileset resource. At the moment, a script for the
TileMap node creates a Dictionary that maps
tile coordinate -> TileType, so the
TileType are easy to access for every tile and if i change the map, every tile has the corresponding
Here is my Question:
Is it possible to create a recourse when the game is run in the editor or build? I could create a resource for every
TileMap that holds the Dictionary so it doesn't need to be calculated every time the map is loaded in run-time?
Thanks for your help!