com.alicizax.unity.ui.exten.../Editor/UX/UXGroupEditor.cs

30 lines
923 B
C#
Raw Normal View History

2025-04-11 17:26:28 +08:00
// using UnityEditor;
//
// #if UNITY_EDITOR
// [CustomEditor(typeof(UXGroup))]
// public class UXGroupEditor : Editor
// {
// private SerializedProperty m_AllowSwitchOff;
// private SerializedProperty m_Buttons;
// private SerializedProperty m_OnSelectedChanged;
//
// private void OnEnable()
// {
// m_AllowSwitchOff = serializedObject.FindProperty("m_AllowSwitchOff");
// m_Buttons = serializedObject.FindProperty("m_Buttons");
// m_OnSelectedChanged = serializedObject.FindProperty("onSelectedChanged");
// }
//
// public override void OnInspectorGUI()
// {
// serializedObject.Update();
//
// EditorGUILayout.PropertyField(m_AllowSwitchOff);
// EditorGUILayout.PropertyField(m_Buttons, true);
// EditorGUILayout.PropertyField(m_OnSelectedChanged);
//
// serializedObject.ApplyModifiedProperties();
// }
// }
// #endif