The length of the animation clip in seconds.
no example available in JavaScript
using UnityEngine; using System.Collections;
public class ExampleScript : MonoBehaviour { public Animation anim;
void Start() { // Print the length of the walk animation in seconds print(anim["Walk"].length); } }
Did you find this page useful? Please give it a rating: