Adjust panel size/pos

This commit is contained in:
Sinai
2021-04-16 23:59:54 +10:00
parent c8f3a7f430
commit 7cb4faa596
2 changed files with 10 additions and 10 deletions

View File

@ -165,9 +165,9 @@ namespace UnityExplorer.UI.Panels
mainPanelRect.anchorMin = Vector3.zero;
mainPanelRect.anchorMax = new Vector2(0, 1);
mainPanelRect.sizeDelta = new Vector2(300f, mainPanelRect.sizeDelta.y);
mainPanelRect.anchoredPosition = new Vector2(160, 0);
mainPanelRect.offsetMin = new Vector2(mainPanelRect.offsetMin.x, 10); // bottom
mainPanelRect.offsetMax = new Vector2(mainPanelRect.offsetMax.x, -10); // top
mainPanelRect.anchoredPosition = new Vector2(200, 0);
mainPanelRect.offsetMin = new Vector2(mainPanelRect.offsetMin.x, 100); // bottom
mainPanelRect.offsetMax = new Vector2(mainPanelRect.offsetMax.x, -50); // top
mainPanelRect.pivot = new Vector2(0.5f, 0.5f);
}