Merged master

This commit is contained in:
MrGadget 2024-10-23 17:51:44 -04:00
commit 25c0db52ee

View File

@ -21,8 +21,9 @@ void GenerateTerrain()
Debug.LogError("No Terrain component found on this GameObject.");
return;
}
#if UNITY_EDITOR
Undo.RecordObject(terrain, "Generate Perlin Noise Terrain");
#endif
terrain.terrainData = GenerateTerrainData(terrain.terrainData);
}