AnimationState.clip 剪辑

var clip : AnimationClip

Description描述

The clip that is being played by this animation state.

此动画状态播放的剪辑。

using UnityEngine;
using System.Collections;

public class example : MonoBehaviour {
	public void Awake() {
		print(animation["walk"].clip.frameRate);
	}
}
// Prints the frame rate of the animation clip to the console
// 打印动画剪辑的帧率到控制台

print(animation["walk"].clip.frameRate);
Page last updated: 2011-1-7