AlicizaX/Client/Packages/com.alicizax.unity.eventkit/Editor/EventKitComponentInspector.cs
陈思海 eb38f67131 init
2025-01-23 19:06:48 +08:00

36 lines
1.1 KiB
C#

using AlicizaX.Editor;
using AlicizaX.EventKit.Runtime;
using UnityEditor;
namespace AlicizaX.EventKit.Editor
{
[CustomEditor(typeof(EventKitComponent))]
internal sealed class EventKitComponentInspector : ComponentTypeComponentInspector
{
public override void OnInspectorGUI()
{
base.OnInspectorGUI();
if (!EditorApplication.isPlaying)
{
EditorGUILayout.HelpBox("Available during runtime only.", MessageType.Info);
return;
}
// EventKitComponent t = (EventKitComponent)target;
//
// if (IsPrefabInHierarchy(t.gameObject))
// {
// EditorGUILayout.LabelField("Event Handler Count", t.EventHandlerCount.ToString());
// EditorGUILayout.LabelField("Event Count", t.EventCount.ToString());
// }
//
// Repaint();
}
protected override void RefreshTypeNames()
{
RefreshComponentTypeNames(typeof(IEventKitManager));
}
}
}