Page 1 of 1

UI not showing when Built

Posted: Sun Jan 17, 2021 6:44 pm
by annathehank
I'm not sure what I'm doing wrong, but whenever I preview the game in Unity it looks fine:
Image

but when I build it everything goes out of shape:
Image

These are my camera settings, attached to the player object:
Image

And my Dialogue Manager Canvas Settings:
Image

Anyone know why it goes wonky when it's built and is on the browser?

Re: UI not showing when Built

Posted: Sun Jan 17, 2021 8:40 pm
by Tony Li
Hi,

What's the reason you're using Screen Space - Camera instead of Screen Space - Overlay? (It's fine to use Screen Space - Camera. But there may be additional configuration details to look into.)

Try disabling the Canvas Scaler. The UI probably won't look right, but that's fine for a test. Does the UI look similar in the editor's play mode and in builds, assuming the approximate same resolution?

Check the first scene listed in your project's build settings. If it has a Dialogue Manager, check its settings. If the first scene doesn't have a Dialogue Manager, check the second, and so on. In builds, the first Dialogue Manager to appear will survive scene changes and replace Dialogue Managers in subsequent scenes.

Re: UI not showing when Built

Posted: Mon Jan 18, 2021 4:08 pm
by annathehank
Oh gosh I feel really dumb now :lol: I forgot that I had put a manager on the main menu screen and that one didn't have the settings set properly! Thank you!!!

Re: UI not showing when Built

Posted: Mon Jan 18, 2021 4:24 pm
by Tony Li
No worries! Glad to help.