24 lines
605 B
C#
24 lines
605 B
C#
using UnityEditor;
|
|
using UnityEngine;
|
|
|
|
namespace WIFramework.Util.InspectorEditor
|
|
{
|
|
[CustomEditor(typeof(LabelPrinter))]
|
|
public class LabelPrinterEditor : Editor
|
|
{
|
|
LabelPrinter printer;
|
|
void OnEnable()
|
|
{
|
|
printer = target as LabelPrinter;
|
|
}
|
|
|
|
public override void OnInspectorGUI()
|
|
{
|
|
base.OnInspectorGUI();
|
|
if (GUILayout.Button("LabelingObjects"))
|
|
printer.LabelingObjects();
|
|
if (GUILayout.Button("FindPreLabelObjects"))
|
|
printer.FindPreLabelObjects();
|
|
}
|
|
}
|
|
} |