Lerp timed to animation

Is there currently a good way in unity 5 to lerp a game object and play an animation on its child and have the lerp and the animation finish at the Same time without hard coding the length of the animation? I think there used to be an animation.clip.length but no longer.

AnimationState.normalizedTime gives a value between 0 and 1 for percentage of the animation that’s complete – perfect for using with lerp.

1 Like

Awesome dood thanks a lot.