public override void OnInspectorGUI() { DrawDefaultInspector(); TerrainGenerator generator = (TerrainGenerator)target; if (GUILayout.Button("Build Map")) { generator.Generate(); } if (GUILayout.Button("Clear Tiles")) { generator.ClearTilemap(); } }