AnimationClip.frameRate 帧速率

var frameRate : float

Description描述

Frame rate at which keyframes are sampled (Read Only)

被取样关键帧的帧速率。(只读)

This is the frame rate that was used in the animation program you used to create the animation or model.

帧速率是在动画程序用于创建动画或模型中使用。

using UnityEngine;
using System.Collections;

public class example : MonoBehaviour {
	public void Awake() {
		print(animation["walk"].clip.frameRate);
	}
}
//打印动画剪辑的帧速率
print(animation["walk"].clip.frameRate);
Page last updated: 2011-2-10