This repository has been archived on 2026-01-20. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
AW_2025/Assets/Editor/LabelPrinterEditor.cs
2025-02-24 15:18:12 +09:00

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();
}
}
}