inz-00/Assets/Editor/ForestRendererUI.cs
2019-09-07 15:04:27 +02:00

22 lines
468 B
C#

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