AnimationState.clip 剪辑
var clip : AnimationClip
Description描述
The clip that is being played by this animation state.
此动画状态播放的剪辑。
C#
JavaScript
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);