Version: Unity 6 Preview (6000.0)
LanguageEnglish
  • C#

AnimationState.clip

public AnimationClip clip;

Description

The clip that is being played by this animation state.

using UnityEngine;
using System.Collections;

public class ExampleScript : MonoBehaviour { public Animation anim;

void Update() { // Prints the frame rate of the animation clip to the console print(anim["walk"].clip.frameRate); } }