- Home /
Fade in scene transition animation running for less time than fade out
I have a UI canvas with a full screen black image that should make scenes appear as though they are fading in/out. The image fades from alpha 1 to 0 when scene loads (making the new scene appear to fade in) and vice versa for when leaving a scene.
My issue is that the fading in animation runs for less time than the fading out animation and I cannot work out why?! Both the in and out animation clips have a duration of 0.3 seconds. Using animation events and the Stopwatch class, I have timed both halves of the transition and, whilst the out animation runs correctly, the in animation consistently runs for ~80 milliseconds less than it should.
I have attached an image of the animator. Triggers are used to transition between states. The 'in' trigger is called in the script's Start method and the 'out' trigger is called when it is time to change scene.
Does anyone have an idea as to why this issue is occurring? Thanks
Your answer
Follow this Question
Related Questions
Mixamo animations do not play in inspector 0 Answers
Animator animation transition twitch at the start 1 Answer
How to interrupt and replay an animation? 0 Answers
KeyNotFoundException in animator 0 Answers
Animations Won't Play 0 Answers