找回密碼
 注冊帳號

掃一掃,訪問微社區

animationclip.framerate 幀率

2014-12-31 02:50| 發布者: 楊炎| 查看: 2578| 評論: 0|原作者: 蠻牛|來自: unity3d腳本manual

摘要: animationclip.framerate 幀速率varframerate: floatdescription描述frame rate at which keyframes are sampled (read only)被取樣關鍵幀的幀速率。(只讀)this is the frame rate that was used in the animation ...

animationclip.framerate 幀速率

varframerate: 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.

幀速率是在動畫程序用于創建動畫或模型中使用。

c#

javascript

using unityengine;

using system.collections;

public class example :monobehaviour{

public void awake() {

print(animation["walk"].clip.framerate);

}

}

//打印動畫剪輯的幀速率

print(animation["walk"].clip.framerate);

相關閱讀

文章點評
相關文章
女校游泳队彩金