UI not showing when Built

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
annathehank
Posts: 95
Joined: Sun May 03, 2020 2:17 pm

UI not showing when Built

Post 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?
User avatar
Tony Li
Posts: 22051
Joined: Thu Jul 18, 2013 1:27 pm

Re: UI not showing when Built

Post 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.
annathehank
Posts: 95
Joined: Sun May 03, 2020 2:17 pm

Re: UI not showing when Built

Post 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!!!
User avatar
Tony Li
Posts: 22051
Joined: Thu Jul 18, 2013 1:27 pm

Re: UI not showing when Built

Post by Tony Li »

No worries! Glad to help.
Post Reply