Screensizeproblem with standalone build

I build the standalone version with the resolution set to windowed (1080x1920).
However, when I run the game the Quit button sits right on the bottom of my screen and ingame I can’t see the UI. I changed the build settings to resizable window which fixed this issue, but now the game screen isn’t restricted to the camera viewport, meaning my enemies spawn and de-spawn out of thin air instead of off-screen.

Any ideas how to fix that or where I could’ve overseen something?

Hi,

First of all, set the target resolution in your game window in Unity. If the GUI looks wrong there too, you will have to rework it. Check the anchors of your game objects.

https://docs.unity3d.com/Packages/com.unity.ugui@1.0/manual/UIBasicLayout.html


See also:

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms