inz-00/Assets/Editor/MapRendererUI.cs
2019-08-29 21:41:21 +02:00

22 lines
456 B
C#

using Assets;
using UnityEditor;
using UnityEngine;
namespace Editor
{
[CustomEditor(typeof (MapRenderer))]
public class MapRendererUI : UnityEditor.Editor
{
public override void OnInspectorGUI()
{
var target = this.target as MapRenderer;
DrawDefaultInspector();
if (GUILayout.Button("Generate"))
{
target.Generate();
}
}
}
}