ict.shenzhi/Assets/Scripts/UIManager/Editor/PanelBasicEditor.cs

22 lines
502 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEditor;
[CustomEditor(typeof(PanelBasic))]
public class PanelBasicEditor : Editor
{
PanelBasic _target;
private void OnEnable()
{
_target = (PanelBasic)target;
}
public override void OnInspectorGUI()
{
EditorGUI.BeginDisabledGroup(true);
EditorGUILayout.LabelField(_target.panel_type);
EditorGUI.EndDisabledGroup();
base.OnInspectorGUI();
}
}