*
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
using UnityEngine;
|
||||
using UnityEditor;
|
||||
using System.Collections;
|
||||
|
||||
[CustomEditor(typeof(TreeGenerator))]
|
||||
public class TreeGeneratorEditor : Editor {
|
||||
public override void OnInspectorGUI()
|
||||
{
|
||||
base.OnInspectorGUI();
|
||||
if (GUILayout.Button("Generate"))
|
||||
{
|
||||
(target as TreeGenerator).Generate();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user