Page 1 of 1

Dialogue UI Template invisible

Posted: Mon Jan 24, 2022 11:57 am
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 598 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

Re: Dialogue UI Template invisible

Posted: Mon Jan 24, 2022 12:52 pm
by Tony Li
Hi Rob - Could it be this?

Why can't I see my UI in the scene view?

Re: Dialogue UI Template invisible

Posted: Mon Jan 24, 2022 1:46 pm
by rykaan
First thing I checked :(
invisible ui 2.jpg
invisible ui 2.jpg (236.95 KiB) Viewed 587 times

Re: Dialogue UI Template invisible

Posted: Mon Jan 24, 2022 1:53 pm
by Tony Li
Does the UI have a Canvas Group whose Alpha is set to zero, or is the Canvas component itself disabled?

Re: Dialogue UI Template invisible

Posted: Mon Jan 24, 2022 2:36 pm
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 572 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 572 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?

Re: Dialogue UI Template invisible

Posted: Mon Jan 24, 2022 2:48 pm
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?

Re: Dialogue UI Template invisible

Posted: Tue Jan 25, 2022 7:08 am
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.

Re: Dialogue UI Template invisible

Posted: Tue Jan 25, 2022 8:52 am
by Tony Li
No worries; sometimes an extra pair of eyes helps. Glad you found it!