How to dynamically set what Tiles are being rendered in the 2017.2 Tilemap?
I'm building a fog of war system using Unity 2017.2's new TileMap feature and I would like to set a Tile and a list of other Tiles which are pre-calculated as being visible from that tile as being visible when the player enters that tile.
The issue I'm having is that the GameObject associated with an individual tile does not have a SpriteRenderer, so I can't just toggle enabled on that component. Rendering is handled by the TileMap Renderer and I'm not seeing any documentation on how I can manipulate what it is doing during run time.
One solution is to disable the TileMapRenderer and attach a SpriteRenderer to my CustomTile::BaseTile which handles rendering but I imagine the TileMapRenderer is doing some performance related things which I'd like to benefit from.
Any ideas?
Thanks!