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?
Weird problem with Subtitle panel and child elements with animator.
-
- Posts: 112
- Joined: Tue Jan 19, 2016 11:37 pm
Re: Weird problem with Subtitle panel and child elements with animator.
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.
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.
-
- Posts: 112
- Joined: Tue Jan 19, 2016 11:37 pm
Re: Weird problem with Subtitle panel and child elements with animator.
That worked! Thanks!
Last edited by hellwalker on Sun May 12, 2019 2:55 pm, edited 1 time in total.
Re: Weird problem with Subtitle panel and child elements with animator.
Great! Happy to help.