- Home /
Question by
Doemphi · Jun 01, 2014 at 06:08 PM ·
webplayerunityguiunityplayer
Unity player loads half screen.
After changing screen.width to camera.pixelWidth the unity web and normal player does this. I'm not getting any errors in my console either.
Example of my code
//Make and define button start xpos, ypos, width & height
buttonStart.x = camera.pixelWidth / 2 - buttonStart.width /2;
buttonStart.y = camera.pixelHeight / 2;
buttonStart.width = RECTWIDTH;
buttonStart.height = RECTHEIGHT;
//Make and define labelPluis xpos, ypos, width & height
labelPluis.x = camera.pixelWidth / 2 - labelPluis.width/2;
labelPluis.y = camera.pixelHeight / 2 - YPOS;
labelPluis.width = RECTWIDTH;
labelPluis.height = RECTHEIGHT;][2]
What I see
Any ideas?
[2]: /storage/temp/27172-screen+shot+2014-06-01+at+19.47.09.png
screen shot 2014-06-01 at 19.47.09.png
(311.9 kB)
Comment