Version: 5.4
public float length ;

説明

アニメーションの再生時間(読み取り専用)。

using UnityEngine;
using System.Collections;

public class ExampleClass : MonoBehaviour { public Animation anim; IEnumerator Start() { anim = GetComponent<Animation>(); anim.Play(); yield return new WaitForSeconds(anim.clip.length); } }