AnimationClip.length

var length : float

Description

Animation length in seconds (Read Only)

JavaScript
animation.Play();
// Wait for the animation to have finished
yield WaitForSeconds (animation.clip.length);