36 lines
1.1 KiB
C#
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));
|
|
}
|
|
}
|
|
} |