How to hide bubble text immediately

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
pmand
Posts: 15
Joined: Wed Mar 01, 2023 1:09 pm

How to hide bubble text immediately

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

Re: How to hide bubble text immediately

Post by Tony Li »

Hi,

Can you please provide a screenshot or mockup of what's going on and what you'd like to happen?
pmand
Posts: 15
Joined: Wed Mar 01, 2023 1:09 pm

Re: How to hide bubble text immediately

Post 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?
Attachments
bubbles.gif
bubbles.gif (841.14 KiB) Viewed 423 times
User avatar
Tony Li
Posts: 22108
Joined: Thu Jul 18, 2013 1:27 pm

Re: How to hide bubble text immediately

Post 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?
pmand
Posts: 15
Joined: Wed Mar 01, 2023 1:09 pm

Re: How to hide bubble text immediately

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

Re: How to hide bubble text immediately

Post 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.
Post Reply