- Home /
Why does UI canvas display with corner at center of screen for first scene?
The canvas for the first scene is displaying its bottom left corner in the center of the screen when it is built for web. It is then positioned correctly in other scenes ( it is a "DontDestroyOnLoad" object ).
It is a root object i.e. not nested. It doesn't happen in the editor preview.
Unity 4.6.2f1. Didn't see anything in the later updates mentioning this as a fix. FireFox 35.0.1 if that makes a difference.
See picture below:
Answer by BroVodo · Apr 22, 2015 at 07:23 AM
http://answers.unity3d.com/questions/830104/web-player-issue-1.html
Didn't have a camera in the first scene!
I have a main camera. I have even tried creating the canvas as a child of it. Still the game view sets at the bottom left corner
Got it had to add the camera to the canvas as render camera. Sorry for my ignorance.
Your answer
![](https://koobas.hobune.stream/wayback/20220613193654im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Web Player 2 Finger Touch Screen Large Monitor Problem 0 Answers
Unity Web Player . . . What Does It Do? 3 Answers
Web Player - Scripts not working properly? 1 Answer
Getting system available memory from web player 1 Answer
CPU and memory usage between a Unity projet in Web Player and as a standalone 0 Answers