I have a script that changes automatically the splatmap of a terrain. I would like to be able to undo the changes made by this script through the Unity undo system.
Here is one of the code I've tried:
Does anyone know how to make it work? (I really would like to avoid Undo.RegisterSceneUndo because my scene is really heavy)
Still looking for an answer on this one. Registering the terrain data should work since the splat map, like the height map, is part of the terrain data; but it doesn't. Has to be a bug.
In the meantime, I guess you have to just implement your own solution. Save the splat map before changing it and create a button that reloads the saved map when you press it.
answered May 16 at 05:11 PM