Scale canvas in resizable window build?

I have a UI Canvas in “Overlay” mode with “Scale With Screen Size” set and 1920 by 1080 ref resolution. I am using “Shrink” for my screen match mode. Everything looks perfect in the editor game window. I can drag to any shape and the canvas keeps its aspect and Unity puts letterbox type black rectangles where it needs to when the aspect gets too funky.

When I make a build for a windows resizable window however … and resize the window … the scaling of all my elements is all over the place and looks horrible. Should a resizable window perform like the game window in the editor does? Am I missing something?

Duh … I had the aspect locked to 16:9 by in my game window … that’s why Unity was keeping the aspect locked for me. When I change it to “Free Aspect” it behaves like a resizable window and my UI goes nuts. I kinda like the aspect locked at 16:9 though … so I guess I will look into that. Sorry for the question.

1 Like