修复表格编辑器的问题
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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<RectTransform>();
|
||||
bgRt.anchorMin = new Vector2(0, 1);
|
||||
|
||||
Reference in New Issue
Block a user