animationstate.normalizedspeed 规范化速度

2014-12-31 05:42| 发布者: 杨炎| 查看: 2150| 评论: 0|原作者: 蛮牛|来自: yzc88亚洲城脚本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;

相关阅读

文章点评
相关文章