Dialogue UI Template invisible

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
User avatar
rykaan
Posts: 75
Joined: Tue Feb 11, 2020 6:22 am

Dialogue UI Template invisible

Post by rykaan »

Hi Tony,

Sorry to bother you again but I've run into a unity bug or something that means I can no longer see the Dialogue UI Template prefab in the editor. Here's what I'm seeing:
ui invisible.jpg
ui invisible.jpg (227.88 KiB) Viewed 699 times
The UI layer is visible in the drop down top right, the quest tracker HUD is fine so it's not a global thing, the various parts of the UI don't seem to be mis-sized so I don't think there's a load of negative object sizes causing it. The whole UI appears completely fine in game so it only affects the editor. It also doesn't affect UI elements I've made in other places, I must have done something that only affects the Dialogue UI and only in the editor, and I have no idea what.

Any ideas?
Cheers,
Rob
User avatar
Tony Li
Posts: 22154
Joined: Thu Jul 18, 2013 1:27 pm

Re: Dialogue UI Template invisible

Post by Tony Li »

Hi Rob - Could it be this?

Why can't I see my UI in the scene view?
User avatar
rykaan
Posts: 75
Joined: Tue Feb 11, 2020 6:22 am

Re: Dialogue UI Template invisible

Post by rykaan »

First thing I checked :(
invisible ui 2.jpg
invisible ui 2.jpg (236.95 KiB) Viewed 688 times
User avatar
Tony Li
Posts: 22154
Joined: Thu Jul 18, 2013 1:27 pm

Re: Dialogue UI Template invisible

Post by Tony Li »

Does the UI have a Canvas Group whose Alpha is set to zero, or is the Canvas component itself disabled?
User avatar
rykaan
Posts: 75
Joined: Tue Feb 11, 2020 6:22 am

Re: Dialogue UI Template invisible

Post by rykaan »

I don't believe so. The Canvas is enabled on the Dialogue Manger prefab and is referenced as the default canvas for the UI.
Invisible ui 3.jpg
Invisible ui 3.jpg (346.35 KiB) Viewed 673 times
And when the prefab is open there's nothing I can do with the canvas, although it does show as being active.
Invisible ui 4.jpg
Invisible ui 4.jpg (240.55 KiB) Viewed 673 times
Is the environment canvas something I can get to elsewhere and fiddle with? Or is it just the linked canvas from the first image?
User avatar
Tony Li
Posts: 22154
Joined: Thu Jul 18, 2013 1:27 pm

Re: Dialogue UI Template invisible

Post by Tony Li »

The Environment canvas is a default canvas that Unity creates at runtime to show UI prefabs.

Are there any other Canvas Groups in the dialogue UI's hierarchy, maybe on the Dialogue Panel GameObject?

Do any other UIs other than the dialogue UI appear properly in the Scene view when you edit them?
User avatar
rykaan
Posts: 75
Joined: Tue Feb 11, 2020 6:22 am

Re: Dialogue UI Template invisible

Post by rykaan »

Thanks Tony, that's all it was. Sorry for taking up your time with something I really should have been able to spot.
User avatar
Tony Li
Posts: 22154
Joined: Thu Jul 18, 2013 1:27 pm

Re: Dialogue UI Template invisible

Post by Tony Li »

No worries; sometimes an extra pair of eyes helps. Glad you found it!
Post Reply