I made this minimap using Canvas and a mask layer. It works fine. The problem is when I change the layout and return to it. It resets the canvas to the original state when the map was completely unrevealed.
If I set canvas with persist behavior, it doesnt reset, but reveal all the map.
How do I make it be at the same state when the player is back to the layout?
Thanks!