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