For example, I need to know the duration of the animations before the animation starts playing actually (to build some “wait until animation ends” mechanism). How to I get the animation duration by animation name? I only found something like:
`getClips()[0].duration`
but in my case I want to get the clip by animation name instead of index. Is there any getClipByName() like methods?