public AnimationClip clip ;

描述

正在通过该动画状态播放的剪辑。

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); } }