Hi!
I'm currently having an issue with UI scaling on a Mac. In the editor, it seems to be alright, but after I make a build and run it, Ui elements seem to be off. Any suggestions on how to fix this would be appreciated. Also, I know that there are a lot of variables that can affect this, so please let me know what information I can offer.
The UI elements are all set to "Screen Space - Camera" and "Scale With Screen Size."
Here's some of my info:
Apple M1
macOS: Sonoma 14.5
Unity: 2022.3.32f1
AC: 1.81.1
https://drive.google.com/file/d/1TmS1hUn-aUPtffbLgOTbkvWVncEAlYO9/view?usp=sharing
https://drive.google.com/file/d/1jJaMipDCg-W96-gmV1OSGTkuxKFaTgMk/view?usp=sharing
Thank you in advance for your help.
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
Are you enforcing an aspect ratio within the Settings Manager? It looks like you have letterboxing in the build screenshot, which'll occur if the screen's ratio is less than the enforced.
AC's aspect ratio enforcement doesn't affect the game window - so you need to update your UI canvases to let them know about this enforcement. This is done with the Auto-correct UI Dimensions component. See the Manual chapter of the same name for details.
thank you. I will look into it. have a wonderful day ahead!
I've done this, and it seems to work for the most part on most elements. But it's still not scalling/affecting the actual game screen (on larger resolutions) the game appears letterboxed. Do I need to create a prefab of the camera and add the Auto-Correct UI Dimensions component to that also?
The aspect ratio (fixed or range) of your Game window is configured under the "Camera" section of the Settings Manager.