Quantcast
Channel: Questions in topic: "unitywebplayer"
Viewing all articles
Browse latest Browse all 452

Unity player loads half screen.

$
0
0
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

Viewing all articles
Browse latest Browse all 452

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>