public override void OnInspectorGUI() { ChunkGenerator c = (ChunkGenerator)target; DrawDefaultInspector(); if (GUILayout.Button("Generate Terrain")) { c.Generate(); } if (GUILayout.Button("Erode Terrain")) { c.ApplyErosion(); } if (GUILayout.Button("Generate and Erode Terrain")) { c.Generate(); c.ApplyErosion(); } if (GUILayout.Button("Retexture Terrain")) { c.TextureAllChunks(); } }