May I know the proper way to get the length of certain animation in Mecanim ? I've been using
But after changing animation type from Legacy to Generic it doesn't work anymore.
The error reported is NullReferenceException but I couldn't find other ways of getting info from Generic animation.
Code (csharp):
The error reported is NullReferenceException but I couldn't find other ways of getting info from Generic animation.