How can I make and restore a copy of a terrain?

I need to create an explosion craters on terrain during gameplay. But heightmap change is persistent.

How to revert a heightmap to its original after the end of a level?

Thanks in advance!

I'd love to know the answer to this, I just screwed up my terrain by changing the heightmap. it seems I've lost it all. I made a backup of the project and I want to restore the terrain.asset file. Not sure if its going to work... I'll let you know...

1 Answer

1

On Start : Store the heightmap values in a separate array.

On Destroy : Apply the start stored array values back to the heightmap.

the problem with that answer is that all of you projects will have that lighting, the solution I gave above gives me the option to use toon shading or not.