Weird problem with Subtitle panel and child elements with animator.
Posted: Sat May 11, 2019 6:16 pm
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?
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?