- Home /
Why does my scene looks different when I run a WebGL build ?
I'm new to the forum, as well as to the whole engine (I'm also brazilian;forgive me for any misspelling) and I thought my game was doing fine until I tried to run the WebGL build of it. When I tested the game in Unity's preview it looked fine, in spite of it, when I ran the game on chrome, the screen shrinked and the UI had scaled up to the point some text's wouldn't get fully displayed. Just as an example, here is how the instruction scene should look like:
It's displayed like this on browser, instead:
Other scenes showed the same problem (In the main scene the players are placed out of the main camera). I'm afraid this has something to do with the canvas and I end up needing to do all over again. Can anybody help me out with this ? ( I really don't want to do the UI again)
Answer by cooldude5757 · Feb 07, 2018 at 04:27 PM
It is canvas scaler, you need to set that from Constant pixel size to Scale with screen size. Once you do that, you will have to do minor changes with the children of the canvas. Should be easy hopefully.
Thank you, It didn't happened to be the canvas scale mode that was causig the problem, but it's children. I must have forgotten to stabilsh the anchors point and it messed up the whole thing. Thanks again !
Your answer
Follow this Question
Related Questions
Is it possible to put a world space UI onto an instantiated object? 1 Answer
Cleanup GameObject Scale in hierarchy? 1 Answer
Instantiating a UI element Screen.height and Screen.width way off 0 Answers
Unity build resolution problem 1 Answer
Oculus Touch controller registered as mouse input by Unity - why? 1 Answer