Page 1 of 1

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

Posted: Wed Mar 18, 2020 9:24 am
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.

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

Posted: Wed Mar 18, 2020 10:50 am
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.