UI Canvas Group Animation "Fade in " but not "Fade out"

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
onyx
Posts: 7
Joined: Wed Mar 11, 2020 12:52 am

UI Canvas Group Animation "Fade in " but not "Fade out"

Post by onyx »

Hi Tony:

Sorry to bother again. The dialogue UI works almost perfectly, except for a small problem with transition animation: it "fade in" perfectly on dialogue start, but on dialogue ends, it seems to skipped "fade out" clip, and close the dialogue panel directly.

To be additional, I'm currently using a world space canvas in my game with dialogue system's example canvas group animator prefab attached to my UI panel, and I have tried to override my custom UI to the dialogue system's prefab UI, but it still acts the same, "fade in" well, but not "fade out", like it automatically close the UI panel before the "fade out" transition animation clip played.
I believe it's a rather small problem, but it really bothers me a lot.

Thanks a lot.
User avatar
Tony Li
Posts: 21722
Joined: Thu Jul 18, 2013 1:27 pm

Re: UI Canvas Group Animation "Fade in " but not "Fade out"

Post by Tony Li »

Hi,

Yes, I can see how that would be annoying.

Try adding a Hide Trigger with an animation to the main dialogue panel.

Make sure the Basic Standard Dialogue UI fades in and out properly. I know it's a screen space canvas, but the canvas type doesn't matter for this problem. If it does work properly, compare the animators' and trigger parameters' setup to your own UI. If it doesn't work properly, check the fade out animation; maybe the animator got changed somehow.
Post Reply