找回密碼
 注冊帳號

掃一掃,訪問微社區

animationstate.normalizedspeed 規范化速度

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

摘要: animationstate.normalizedspeed 規范化速度varnormalizedspeed: floatdescription描述the normalized playback speed.規范化播放速度。this is most commonly used to synchronize playback speed when blending be ...

animationstate.normalizedspeed 規范化速度

varnormalizedspeed: float

description描述

the normalized playback speed.

規范化播放速度。

this is most commonly used to synchronize playback speed when blending between two animations. in most cases it is easier and better to use animation.synclayer instead.

它常用于混合兩個動畫時同步播放速度,大多情況下用animation.synclayer更佳。

c#

javascript

using unityengine;

using system.collections;

public class example :monobehaviour{

public void awake() {

animation["run"].normalizedspeed = animation["walk"].speed;

}

}

// sync run and walk speed

//同步run 和walk的速度

animation["run"].normalizedspeed = animation["walk"].speed;

相關閱讀

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