22 lines
437 B (Stored with Git LFS)
C#
22 lines
437 B (Stored with Git LFS)
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();
|
|
}
|
|
}
|
|
} |