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
![alt text][1]
Any ideas?
[1]: /storage/temp/27173-screen+shot+2014-06-01+at+19.47.09.png
[2]: /storage/temp/27172-screen+shot+2014-06-01+at+19.47.09.png
↧