Quantcast
Channel: Unity Forum
Viewing all articles
Browse latest Browse all 1466670

Get animation length in Mecanim

$
0
0
May I know the proper way to get the length of certain animation in Mecanim ? I've been using

Code (csharp):
  1. animation["run"].length
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.

Viewing all articles
Browse latest Browse all 1466670

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>