From b55b96aece45473ac51baae2e4f497fb9fafd100 Mon Sep 17 00:00:00 2001
From: yyl <yyl>
Date: 星期二, 17 六月 2025 17:27:26 +0800
Subject: [PATCH] 18 子 2D卡牌客户端搭建 / 2D卡牌客户端搭建 报错修复

---
 Assets/Editor/UI/UIBaseInspector.cs |   85 +++++++++++++++++++++---------------------
 1 files changed, 43 insertions(+), 42 deletions(-)

diff --git a/Assets/Editor/UI/UIBaseInspector.cs b/Assets/Editor/UI/UIBaseInspector.cs
index ad0e222..ac106e5 100644
--- a/Assets/Editor/UI/UIBaseInspector.cs
+++ b/Assets/Editor/UI/UIBaseInspector.cs
@@ -44,52 +44,53 @@
 
     public override void OnInspectorGUI()
     {
-        serializedObject.Update();
+        base.OnInspectorGUI();
+        // serializedObject.Update();
 
-        EditorGUILayout.PropertyField(uiLayer);
-        EditorGUILayout.PropertyField(uiName);
-        EditorGUILayout.PropertyField(isMainUI);
-        EditorGUILayout.PropertyField(supportParentChildRelation);
+        // EditorGUILayout.PropertyField(uiLayer);
+        // EditorGUILayout.PropertyField(uiName);
+        // EditorGUILayout.PropertyField(isMainUI);
+        // EditorGUILayout.PropertyField(supportParentChildRelation);
 
-        EditorGUILayout.Space();
-        EditorGUILayout.LabelField("鎸佷箙鍖栬缃�", EditorStyles.boldLabel);
-        EditorGUILayout.PropertyField(isPersistent);
-        if (isPersistent.boolValue)
-        {
-            EditorGUI.indentLevel++;
-            EditorGUILayout.PropertyField(maxIdleRounds);
-            EditorGUI.indentLevel--;
-        }
+        // EditorGUILayout.Space();
+        // EditorGUILayout.LabelField("鎸佷箙鍖栬缃�", EditorStyles.boldLabel);
+        // EditorGUILayout.PropertyField(isPersistent);
+        // if (isPersistent.boolValue)
+        // {
+        //     EditorGUI.indentLevel++;
+        //     EditorGUILayout.PropertyField(maxIdleRounds);
+        //     EditorGUI.indentLevel--;
+        // }
 
-        EditorGUILayout.Space();
-        EditorGUILayout.LabelField("鍔ㄧ敾璁剧疆", EditorStyles.boldLabel);
-        EditorGUILayout.PropertyField(openAnimationType);
-        EditorGUILayout.PropertyField(closeAnimationType);
-        EditorGUILayout.PropertyField(animeRoot, new GUIContent("animeRoot (鍔ㄧ敾鏍硅妭鐐�)"));
-        if (openAnimationType.enumValueIndex != 0 || closeAnimationType.enumValueIndex != 0)
-        {
-            EditorGUI.indentLevel++;
-            EditorGUILayout.PropertyField(animeDuration);
-            if ((UIAnimationType)openAnimationType.enumValueIndex == UIAnimationType.ScaleOverInOut)
-            {
-                EditorGUILayout.PropertyField(scaleOverInOutCurve);
-            }
-            EditorGUILayout.PropertyField(animationEase);
-            EditorGUI.indentLevel--;
-        }
-        // 鍔ㄧ敾鐢熸晥鎻愮ず
-        if ((openAnimationType.enumValueIndex != 0 || closeAnimationType.enumValueIndex != 0) && animeRoot.objectReferenceValue == null)
-        {
-            EditorGUILayout.HelpBox("濡傞渶鍔ㄧ敾鐢熸晥锛屽繀椤绘寚瀹� animeRoot锛堝姩鐢绘牴鑺傜偣锛夛紒", MessageType.Warning);
-        }
+        // EditorGUILayout.Space();
+        // EditorGUILayout.LabelField("鍔ㄧ敾璁剧疆", EditorStyles.boldLabel);
+        // EditorGUILayout.PropertyField(openAnimationType);
+        // EditorGUILayout.PropertyField(closeAnimationType);
+        // EditorGUILayout.PropertyField(animeRoot, new GUIContent("animeRoot (鍔ㄧ敾鏍硅妭鐐�)"));
+        // if (openAnimationType.enumValueIndex != 0 || closeAnimationType.enumValueIndex != 0)
+        // {
+        //     EditorGUI.indentLevel++;
+        //     EditorGUILayout.PropertyField(animeDuration);
+        //     if ((UIAnimationType)openAnimationType.enumValueIndex == UIAnimationType.ScaleOverInOut)
+        //     {
+        //         EditorGUILayout.PropertyField(scaleOverInOutCurve);
+        //     }
+        //     EditorGUILayout.PropertyField(animationEase);
+        //     EditorGUI.indentLevel--;
+        // }
+        // // 鍔ㄧ敾鐢熸晥鎻愮ず
+        // if ((openAnimationType.enumValueIndex != 0 || closeAnimationType.enumValueIndex != 0) && animeRoot.objectReferenceValue == null)
+        // {
+        //     EditorGUILayout.HelpBox("濡傞渶鍔ㄧ敾鐢熸晥锛屽繀椤绘寚瀹� animeRoot锛堝姩鐢绘牴鑺傜偣锛夛紒", MessageType.Warning);
+        // }
 
-        EditorGUILayout.Space();
-        EditorGUILayout.LabelField("閬僵璁剧疆", EditorStyles.boldLabel);
+        // EditorGUILayout.Space();
+        // EditorGUILayout.LabelField("閬僵璁剧疆", EditorStyles.boldLabel);
 
-        EditorGUILayout.BeginHorizontal();
+        // EditorGUILayout.BeginHorizontal();
 
-        EditorGUILayout.PropertyField(openMask);
-        EditorGUILayout.PropertyField(clickEmptySpaceClose);
+        // EditorGUILayout.PropertyField(openMask);
+        // EditorGUILayout.PropertyField(clickEmptySpaceClose);
         // EditorGUI.BeginChangeCheck();
         // openMask.boolValue = GUILayout.Toggle(openMask.boolValue, "寮�鍚伄缃�", EditorStyles.miniButtonLeft);
         // clickEmptySpaceClose.boolValue = GUILayout.Toggle(clickEmptySpaceClose.boolValue, "鐐瑰嚮绌虹櫧鍏抽棴", EditorStyles.miniButtonRight);
@@ -114,8 +115,8 @@
         //         clickEmptySpaceClose.boolValue = tempClickEmptyClose;
         //     }
         // }
-        EditorGUILayout.EndHorizontal();
+        // EditorGUILayout.EndHorizontal();
 
-        serializedObject.ApplyModifiedProperties();
+        // serializedObject.ApplyModifiedProperties();
     }
 }
\ No newline at end of file

--
Gitblit v1.8.0