- Home /
Question by
Deadcow_ · May 18, 2015 at 02:34 PM ·
editoreditorwindowmaximize
EditorWindow.maxSize is not working
My code to show EditorWindow looks like this:
instance = GetWindow<ConditionalHierarchyManager>();
instance.minSize = new Vector2(355, 400);
instance.maxSize = new Vector2(355, instance.maxSize.y);
instance.ShowPopup();
EditorWindow can be freely resized to width > 355, but I need to keep the width constant.
I even wright this in Update to ensure that sizes applied:
if (instance != null)
Debug.Log(instance.maxSize.x + " " + position.width);
And yeah, Debug logs something like "335 650" on resize.
What may cause this?
Comment
Your answer
Follow this Question
Related Questions
Can't move GameObject in Scene view with Unity Components attached 2021.2.2f 0 Answers
EditorWindow and emulating panels 2 Answers
How do I wait until after AssetDatabase creates an assets before carrying out another function ? 0 Answers
Find instance of EditorWindow without creating new one? 2 Answers
Weird bug when dragging object onto EditorGUILayout.ObjectField 0 Answers