AnimationState.length

var length : float

Description

The length of the animation clip in seconds.

JavaScript
    // Print the length of the walk animation in seconds
print (animation["Walk"].length);