Mecanim. Check if one shot animation is finished.

I’m making cross-fading between scenes with new UI and I need to know if fading animation is finished. I can’t use terminate states, since empty state resets all the animated values(which is weird but “by design”).

1 Answer

1

What you could do is add an Animation Event to the end of the fade out animation and then transition into a fully faded state.

Well, I made the fully faded state, but that's just weird to have an one-shot animation option and don't have exposed info about it. Terminal state that is a copy of last frame of the previous one feels like a surrogate in that case.