Page 2 of 2

Re: Dialogue Override multiple UI''s

Posted: Thu Nov 07, 2024 3:52 am
by mudukke
For the warning it maybe when I jumping between different parts of the dialogue, but I am not sure.

Regarding the script, does this go on the player or the letterbox template? because I am using two different types dialogue panels would I use setactive false to turn off the dialogue when not in use?

Re: Dialogue Override multiple UI''s

Posted: Thu Nov 07, 2024 7:25 am
by Tony Li
Hi,

This is a custom sequencer command, so it just goes anywhere in your Projects view (i.e., Assets folder), and you don't need to add it to any GameObjects.

Re: Dialogue Override multiple UI''s

Posted: Fri Nov 08, 2024 3:41 am
by mudukke
Hi

I added Canvas child GameObject to the Dialogue Manager and instance letterbox ui. Also added UseDialogueUI(InternalDialoguePanel).

However when I play I get this warning

Re: Dialogue Override multiple UI''s

Posted: Fri Nov 08, 2024 7:46 am
by Tony Li
In the script, try changing this line:

Code: Select all

var ui = DialogueManager.instance.transform.Find(GetParameter(0));
to this:

Code: Select all

var ui = GameObject.Find(GetParameter(0));
This way your UI can be anywhere, not just an active child of the Dialogue Manager's hierarchy.

Re: Dialogue Override multiple UI''s

Posted: Fri Nov 08, 2024 8:37 am
by mudukke
This worked however the subtitles don't appear on the ui and when conversation ends the ui still appears on the screen

Re: Dialogue Override multiple UI''s

Posted: Fri Nov 08, 2024 8:44 am
by Tony Li
There are any other errors or warnings in the Console window?

Test the Letterbox UI by itself -- for example, by temporarily assigning it to the Dialogue Manager's Display Settings > Dialogue UI. Make sure it works on its own.

Re: Dialogue Override multiple UI''s

Posted: Tue Nov 12, 2024 5:36 am
by mudukke
This didn't work, when I played, it used a default UI these are warnings I get. I will send a reproduction project to you

Re: Dialogue Override multiple UI''s

Posted: Tue Nov 12, 2024 3:02 pm
by Tony Li
Thanks for sending the repro project. I replied to your email with some questions.