简体   繁体   中英

Resolution x Building Problems Unity3D

I find 2 people with the same problem, but all answers didn't work. So I'll try asking myself and let see what we will have, already thanks!!!

I used to use the version 4.6.1 .

The project is basic some scenes, and the main scene we usually use the command Screen.setResolution(1024,768,true) to "fit" to all resolutions and be full screen.

In the version 4.6.1 , it worked fine for a while then not anymore, but for the new project we used the 4.6.4 , and when we build the .exe , it don't really fit to the screen (1600x900) it take place in the middle of the screen with a black bar in each side.

We tried open a old project because we thought it could be some setting we were using wrongly, but with the same settings from the old (which is working) still has the problem!!!

We think it might be some windows update, because it is not changing windows native resolution , make any sense?

It only works on 4.0.17b (beta version) .

Is there anything we could do?

See patch notes for Unity 4.6.1 :

DX9: Add black bars in fullscreen mode to maintain aspect ratio.

This may have worked for you, before, depending on graphics settings and drivers.

In any case, you should generally assign a resolution that's appropriate for your monitor's aspect ratio. To calculate the aspect ratio of any given resolution, divide width by height, which you can read from Screen.width and Screen.height , or use one of the recommended resolutions fromScreen.resolutions .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM