Page 1 of 1

How to hide bubble text immediately

Posted: Thu May 09, 2024 2:37 pm
by pmand
I have 3 lines of bubble text conversation. After the 1st bubble showing with the 1st line and the user clicks to continue, I want to hide the 2nd bubble.

I tried doing this by creating a sequence in the 2nd line with this code:

Code: Select all

DialogueManager.SetDialoguePanel(false);
It works, but not immediate. I can still see the 2nd bubble showing and starts typing before disappearing in a second.

I saw that there's an optional second parameter "immediate", so then I changed the script to:

Code: Select all

DialogueManager.SetDialoguePanel(false,true);
But this is even worse. Now the 2nd bubble doesn't disappear at all.

So is there a way to make the 2nd bubble not showing at all (disappear immediately)?
Thanks!

Re: How to hide bubble text immediately

Posted: Thu May 09, 2024 5:03 pm
by Tony Li
Hi,

Can you please provide a screenshot or mockup of what's going on and what you'd like to happen?

Re: How to hide bubble text immediately

Posted: Thu May 09, 2024 5:37 pm
by pmand
Please see attached gif.

The first line is "Hello World"
The second line is "blank line"

After "Hello World" appears, I want to hide the 2nd line ("blank line") bubble.

So I used this code as sequence in the 2nd line:

Code: Select all

DialogueManager.SetDialoguePanel(false);
It does work and hide "blank line", but you can still see the "blank line" text appears for a split second there before disappearing.
Is there a way to make the "blank line" doesn't show up at all?

Re: How to hide bubble text immediately

Posted: Thu May 09, 2024 7:48 pm
by Tony Li
Hi,

Try ticking the subtitle panel's Wait For Show and Wait For Hide checkboxes. Let me know if that addresses the issue. What is the Visibility dropdown set to?

Re: How to hide bubble text immediately

Posted: Fri May 10, 2024 12:40 am
by pmand
Ticking the subtitle panel's Wait For Show and Wait For Hide checkboxes don't work.
But changing the Visibility dropdown to "Only During Content" works!
Thanks for the help, Tony!!

Re: How to hide bubble text immediately

Posted: Fri May 10, 2024 7:56 am
by Tony Li
Hi,

Glad to help! You may want to also keep Wait For Open and Wait For Close ticked as well as changing Visibility to "Only During Content". This way multiple lines in a row will wait for the open/close animations instead of overriding each other.