AnimationClip.length Manual     Reference     Scripting  
Scripting > Runtime Classes > AnimationClip
AnimationClip.length

var length : float

Description

Animation length in seconds (Read Only)

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