20 lines
352 B
C#
20 lines
352 B
C#
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();
|
|
}
|
|
}
|
|
}
|