Why is my Unity game being on Free Aspect after build

Viewed 1384

Hello community I am having issue with the resolution, I set with canvas scaler and it has not any problems but when I build it the resolution just changes into Free Aspect, help me please. Already tried with Edit > delete all PlayerPrefs and deleting the registry file. The first image is Unity Connect 5 and the second one is when I build it. Unity version is 2020.01

enter image description here

enter image description hereenter image description hereenter image description hereenter image description here

enter image description here

2 Answers

Your canvas scaler's UI Scale Mode is probably on Constant Pixel Size, You should configure it to scale properly to match the width and height of the device using the reference resolution

enter image description here

You can try setting the orientation of your game in Player Setting by click Edit -> Project Setting -> Player -> Resolution and Presentation -> Orientation. If Landscape is your prefer you can uncheck Portrait option and your game will run in Landscape.

Related