Page 1 of 1

Weird problem with Subtitle panel and child elements with animator.

Posted: Sat May 11, 2019 6:16 pm
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?

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

Posted: Sat May 11, 2019 7:50 pm
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.

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

Posted: Sat May 11, 2019 9:28 pm
by hellwalker
That worked! Thanks!

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

Posted: Sat May 11, 2019 9:54 pm
by Tony Li
Great! Happy to help.