So I am trying to figure out the best way to handle hidden areas in a tilemap and how to manage them in the Unity editor.
Lets say I have a tilemap where I want a bunch of hidden areas that are only visible / accessible after certain events or conditions have been met (my map size is 512x512 so there could be a lot of these). My first idea was to just draw the main tile map with all the hidden areas exposed and then draw a tilemap per hidden area that basically covers it up. Then when the event / condition triggers to reveal the hidden area, I just remove that tilemap. This works but when I get to the point where I have 30, 40, 50+ tilemaps in this one scene, the performance get kinda bad (even if these extra tilemap maps are sized to just be big enough to cover the area needed and not all 512x512).
The only other option I can think of is for each tile that is part of a hidden area, store some meta data (like the id to indicates the hidden area and the tile id of what the tile should be when the hidden area is revealed) however this pattern makes managing of the hidden areas kinda of a pain.
I am just wondering if there are any patterns I might not be thinking of to make managing something like this easier before I go down the route of manually managing it (and given the amount I intend to use this, is kinda toes the line of probably being more effort in creating the custom editor vs managing it manually but not sure right now).