Content-Length: 17631 | pFad | https://docs.unity3d.com/ScriptReference/../Manual/../ScriptReference/AnimationState-length.html
The length of the animation clip in seconds.
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); } }
Fetched URL: https://docs.unity3d.com/ScriptReference/../Manual/../ScriptReference/AnimationState-length.html
Alternative Proxies: