mirror of
https://github.com/codewriter-packages/Tri-Inspector.git
synced 2025-01-22 00:08:51 -05:00
31 lines
611 B
C#
31 lines
611 B
C#
using UnityEditor;
|
|
using UnityEngine.UIElements;
|
|
|
|
namespace TriInspector.Editors
|
|
{
|
|
public abstract class TriEditor : Editor
|
|
{
|
|
private TriEditorCore _core;
|
|
|
|
protected virtual void OnEnable()
|
|
{
|
|
_core = new TriEditorCore(this);
|
|
}
|
|
|
|
protected virtual void OnDisable()
|
|
{
|
|
_core.Dispose();
|
|
}
|
|
|
|
|
|
public override void OnInspectorGUI()
|
|
{
|
|
_core.OnInspectorGUI();
|
|
}
|
|
|
|
public override VisualElement CreateInspectorGUI()
|
|
{
|
|
return _core.CreateVisualElement();
|
|
}
|
|
}
|
|
} |