This version of Unity is unsupported.

AnimatorStateInfo.length

public float length;

Description

Current duration of the state.

In seconds Can vary when the State contains a Blend Tree.