19 lines
369 B
C#
19 lines
369 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using UnityEditor;
|
|
|
|
[CustomEditor(typeof(LSystem))]
|
|
public class LSystemEditor : Editor {
|
|
|
|
public override void OnInspectorGUI()
|
|
{
|
|
base.OnInspectorGUI();
|
|
|
|
if (GUILayout.Button("Rebuild"))
|
|
{
|
|
(target as LSystem).RebuildTree();
|
|
}
|
|
}
|
|
}
|