ProjectDDD/Packages/SLUnity/Editor/SLUI/SLUIComponentEditor.cs
2025-06-25 11:33:17 +09:00

22 lines
437 B
C#

using UnityEditor;
namespace Superlazy.UI
{
[CustomEditor(typeof(SLUIComponent), true)]
public class SLUIComponentEditor : Editor
{
private SLUIComponent component;
private void OnEnable()
{
component = target as SLUIComponent;
}
public override void OnInspectorGUI()
{
base.OnInspectorGUI();
component.ViewEntity();
}
}
}