找回密碼
 注冊帳號

掃一掃,訪問微社區

animationstate.normalizedtime 規范化時間

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

摘要: animationstate.normalizedtime 規范化時間varnormalizedtime: floatdescription描述the normalized time of the animation.動畫當前規范化時間a value of 1 is the end of the animation. a value of 0.5 is the mi ...

animationstate.normalizedtime 規范化時間

varnormalizedtime: float

description描述

the normalized time of the animation.

動畫當前規范化時間

a value of 1 is the end of the animation. a value of 0.5 is the middle of the animation.

1是動畫結尾. 0.5是動畫中間.

c#

javascript

using unityengine;

using system.collections;

public class example :monobehaviour{

public void awake() {

animation["walk"].normalizedtime = 0.5f;

}

}

// fast forward to the middle of the animation

// 快進到動畫中部

animation["walk"].normalizedtime = 0.5;

相關閱讀

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