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