animationstate.speed 速度

2014-12-31 05:54| 发布者: 杨炎| 查看: 4281| 评论: 0|原作者: 蛮牛|来自: yzc88亚洲城脚本manual

摘要: animationstate.speed 速度varspeed: floatdescription描述the playback speed of the animation. 1 is normal playback speed.动画的播放速度。1为正常速度。a negative playback speed will play the animation ba ...

animationstate.speed 速度

varspeed: float

description描述

the playback speed of the animation. 1 is normal playback speed.

动画的播放速度。1为正常速度。

a negative playback speed will play the animation backwards.

负值将回放动画。

c#

javascript

using unityengine;

using system.collections;

public class example :monobehaviour{

public void awake() {

animation["walk"].speed = -1.0f;

animation["walk"].speed = 2;

}

}

// walk backwards

// 向后走

animation["walk"].speed = -1.0;

// walk at double speed

// 2倍加速播放

animation["walk"].speed = 2;

相关阅读

文章点评
相关文章