Weird problem with Subtitle panel and child elements with animator.

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
hellwalker
Posts: 112
Joined: Tue Jan 19, 2016 11:37 pm

Weird problem with Subtitle panel and child elements with animator.

Post by hellwalker »

Hi!
So, the setup I have is that I have shared subtitle panel between npc and pc, and I have response panel.
The behavior I'm looking for is to only have Subtitle panel or Responce panel open but never both.
I want the subtitle/responce panel to either fully get disabled or canvas group alpha set to 0.

The problem is when I add a UI object with animator component on it as a child of subtitle panel it will not close anymore and stay open. Also when dialogue ends, there is a delay before the whole dialogue menu will close.
If I disable the child object with animator or if I remove animator component, everything works nicely.

I figure there is some component that waits for animation to end on subtitle before doing it's thing with closing panel?
User avatar
Tony Li
Posts: 22056
Joined: Thu Jul 18, 2013 1:27 pm

Re: Weird problem with Subtitle panel and child elements with animator.

Post by Tony Li »

Hi,

Try clearing the Standard UI Subtitle Panel component's Show Animation Trigger and Hide Animation Trigger. This way it will immediately close the subtitle panel. Right now, I think it's finding the TextBoxBG's animator and trying to use Show Animation Trigger and Hide Animation Trigger on it.
hellwalker
Posts: 112
Joined: Tue Jan 19, 2016 11:37 pm

Re: Weird problem with Subtitle panel and child elements with animator.

Post by hellwalker »

That worked! Thanks!
Last edited by hellwalker on Sun May 12, 2019 2:55 pm, edited 1 time in total.
User avatar
Tony Li
Posts: 22056
Joined: Thu Jul 18, 2013 1:27 pm

Re: Weird problem with Subtitle panel and child elements with animator.

Post by Tony Li »

Great! Happy to help.
Post Reply