mirror of
https://github.com/GrahamKracker/UnityExplorer.git
synced 2025-07-15 15:57:52 +08:00
Fix UIPanels being broken after resolution changes, better checks on size/position
This commit is contained in:
@ -292,9 +292,9 @@ namespace UnityExplorer.UI.Widgets.AutoComplete
|
||||
|
||||
protected internal override void DoSetDefaultPosAndAnchors()
|
||||
{
|
||||
mainPanelRect.pivot = new Vector2(0f, 1f);
|
||||
mainPanelRect.anchorMin = new Vector2(0.42f, 0.4f);
|
||||
mainPanelRect.anchorMax = new Vector2(0.68f, 0.6f);
|
||||
Rect.pivot = new Vector2(0f, 1f);
|
||||
Rect.anchorMin = new Vector2(0.42f, 0.4f);
|
||||
Rect.anchorMax = new Vector2(0.68f, 0.6f);
|
||||
}
|
||||
|
||||
public override void ConstructPanelContent()
|
||||
|
Reference in New Issue
Block a user