ProjectDDD/Packages/SLUnity/Editor/SLUI/SLUIComponentEditor.cs

22 lines
437 B
C#
Raw Normal View History

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