How to hide subtitle box/text box while fading?

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
DragoonHP
Posts: 62
Joined: Tue Jan 15, 2019 8:17 am

How to hide subtitle box/text box while fading?

Post by DragoonHP »

Right now, the entire screen including the textbox kinds of fades in/out

Edit: This doesn't work

Code: Select all

SetActive(Dialogue Panel, false); Fade(out, 0.9, #000000)@0.1; Fade(in, 1, #000000)@1;SetActive(Dialogue Panel)@1
The fade out doesn't work and the Dialogue Panel isn't set to active when the Sequence ends.
If it is of any relevance, I have set it as a Sequencer Shortcut and there is another gameObject I set to active. So it's something like

Code: Select all

{{shortcut_seq}}; SetActive(gameObject)
User avatar
Tony Li
Posts: 21678
Joined: Thu Jul 18, 2013 1:27 pm

Re: How to hide subtitle box/text box while fading?

Post by Tony Li »

Please let me know if "Fade(stay" addresses this issue, too.
DragoonHP
Posts: 62
Joined: Tue Jan 15, 2019 8:17 am

Re: How to hide subtitle box/text box while fading?

Post by DragoonHP »

It doesn't. The Dialogue Panel never comes back
User avatar
Tony Li
Posts: 21678
Joined: Thu Jul 18, 2013 1:27 pm

Re: How to hide subtitle box/text box while fading?

Post by Tony Li »

Instead of SetActive, try:

SendMessage(Hide,, Dialogue Panel)

to hide the Dialogue Panel, and replace Hide with Show to show it. If the Dialogue Panel has an Animator, the SetActive will reset it to invisible. The Hide & Show methods will control the Animator.
Post Reply