diff --git a/Assets/OCSTerrain/Runtime/Scripts/UnityTerrain/TerrainManager.cs b/Assets/OCSTerrain/Runtime/Scripts/UnityTerrain/TerrainManager.cs index 8e6785c..bf848c2 100644 --- a/Assets/OCSTerrain/Runtime/Scripts/UnityTerrain/TerrainManager.cs +++ b/Assets/OCSTerrain/Runtime/Scripts/UnityTerrain/TerrainManager.cs @@ -72,6 +72,11 @@ private void OnApplicationQuit() _terrain.terrainData.SetHeights(0, 0, _heightmap_original); } + public void Reset() + { + _terrain.terrainData.SetHeights(0, 0, _heightmap_original); + } + public void AddOffset(float offset) { for (int x = 0; x < heightmapResolution; x++)