I am trying to make a script in a 3D game that unlocks the pixels of a map while you walk. What should I use?
The complicated way would be to have a plane, masking the area and then, every second or so, reposition the verts on that plane to move away from the player. The easy way would be to have multiple planes and destroy them as the vector3.Distance from the player to them are < a certain Distance. The last way I would presume is the least desired.
Another recommended way would be to do some shader work and blend between 2 textures on a grid.
But an even easier way (without any Garbage Collection slowdowns from Destroy) would be to just have 2 materials (one for “revealed” and one with the map texture) and just switch the material from either Distance checks or from Trigger Colliders