mirror of
https://github.com/originalnicodr/CinematicUnityExplorer.git
synced 2026-10-12 02:18:04 +08:00
Save window size between launches
This commit is contained in:
1 parent
21408993c2
commit
9072b16c5a
2 files changed
+56
-8
No files matched your search
+5
-2
@@ -155,8 +155,11 @@ namespace UnityExplorer.UI
|
||||
MainPanel = UIFactory.CreatePanel(UIManager.CanvasRoot, "MainMenu", out GameObject content);
|
||||
|
||||
RectTransform panelRect = MainPanel.GetComponent<RectTransform>();
|
||||
panelRect.anchorMin = new Vector2(0.25f, 0.1f);
|
||||
panelRect.anchorMax = new Vector2(0.78f, 0.95f);
|
||||
//panelRect.anchorMin = new Vector2(0.25f, 0.1f);
|
||||
//panelRect.anchorMax = new Vector2(0.78f, 0.95f);
|
||||
var anchors = ExplorerConfig.Instance.GetWindowAnchorsVector();
|
||||
panelRect.anchorMin = new Vector2(anchors.x, anchors.y);
|
||||
panelRect.anchorMax = new Vector2(anchors.z, anchors.w);
|
||||
|
||||
MainPanel.AddComponent<Mask>();
|
||||
|
||||
|
||||
Reference in new issue
Block a user