*
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
using UnityEngine;
|
||||
using UnityEditor;
|
||||
using System.Collections;
|
||||
|
||||
|
||||
[CustomEditor(typeof(Plot3D))]
|
||||
public class Plot3DEditor : Editor
|
||||
{
|
||||
|
||||
public override void OnInspectorGUI()
|
||||
{
|
||||
var plot = (Plot3D) target;
|
||||
base.OnInspectorGUI();
|
||||
if(GUILayout.Button("Rebuild"))
|
||||
{
|
||||
plot.UpdateMesh();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user