Suddenly had this appear after upgrading to b5. The screen width is being reported as what you would see if you did NOT have the “Maximize on Play” option enabled. The screen resolution is 1280x1024, but you can see in my debug output that the screen width (SW) is reported as 812 and thus my gui elements are not centered…
Anyone else seen this? Should I report a bug? Am I just missing something?
Note that the “Stats” window is displaying the screen width correctly, but “Screen.Width” is not.
Find it hard to believe no one else has seen this!? I am hoping someone has found a “fix” or work-around.
What is your desktop resolution?
Yes, please report the bug with a project to reproduce it.
I have reported it as a bug already. Was just wondering if anyone else is seeing this and if there is a work-around.
Please post the case number here or PM me with it.
369588 - I will try a new project and see if I see the same thing or if it’s just on an upgrade project.
Not seeing this with new projects, just my old one which is an upgrade from 2.X. - was fine in all other beta’s
Yes, I have noticed this bug.
I have solved this putting the GUI commands, (I mean the GUI elements static on the screen) in the Update function not in Start function. The reason is U3b5 seems to have a delay in setting the correct screen resolution when “Maximize on Play” is enabled and then the position of GUI elements is centered relative to the editor view size, not the correct (maximized) full screen resolution, so you have to place your GUI objects after the maximized screen is set by Unity. I don´t know if I have explained it well, sorry because my english language limitations…