From 8f4b13bfea486907aa54a5fb92f329c1ca734457 Mon Sep 17 00:00:00 2001 From: lrc <571244399@qq.com> Date: Wed, 1 Jul 2026 16:11:46 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=A1=A8=E6=A0=BC=E7=BC=96?= =?UTF-8?q?=E8=BE=91=E5=99=A8=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Editor/XTable/XericUIActionTableEditor.cs | 3 +++ Runtime/XTable/Rendering/Component/XericUIActionTable.cs | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Editor/XTable/XericUIActionTableEditor.cs b/Editor/XTable/XericUIActionTableEditor.cs index a147cef..745aa19 100644 --- a/Editor/XTable/XericUIActionTableEditor.cs +++ b/Editor/XTable/XericUIActionTableEditor.cs @@ -84,12 +84,14 @@ namespace XericUIEditor.XTable { m_Table.FullRebuildPreservingData(); m_Table.SetChildrenVisible(m_ShowChildren); + EditorApplication.RepaintHierarchyWindow(); } if (GUILayout.Button("强制刷新样式", GUILayout.Height(26))) { m_Table.ForceStyleRefresh(); m_Table.SetChildrenVisible(m_ShowChildren); + EditorApplication.RepaintHierarchyWindow(); } EditorGUILayout.Space(4); @@ -126,6 +128,7 @@ namespace XericUIEditor.XTable { m_ShowChildren = newShow; m_Table.SetChildrenVisible(m_ShowChildren); + EditorApplication.RepaintHierarchyWindow(); } if (m_ShowChildren) diff --git a/Runtime/XTable/Rendering/Component/XericUIActionTable.cs b/Runtime/XTable/Rendering/Component/XericUIActionTable.cs index 178a5cc..66af54f 100644 --- a/Runtime/XTable/Rendering/Component/XericUIActionTable.cs +++ b/Runtime/XTable/Rendering/Component/XericUIActionTable.cs @@ -857,7 +857,8 @@ namespace XericUI.XTable.Rendering.Component m_BackgroundGo = new GameObject("_TableBackground", typeof(RectTransform), typeof(CanvasRenderer), typeof(Image)); m_BackgroundGo.hideFlags = HideFlags.DontSave | HideFlags.HideInHierarchy; - m_BackgroundGo.transform.SetParent(rectTransform, false); + m_BackgroundGo.transform.SetParent(ContentTransform, false); + m_BackgroundGo.transform.SetAsFirstSibling(); RectTransform bgRt = m_BackgroundGo.GetComponent(); bgRt.anchorMin = new Vector2(0, 1);