找回密码
 注册帐号

扫一扫,访问微社区

animation.stop 停止

2014-12-31 02:30| 发布者: 杨炎| 查看: 1883| 评论: 0|原作者: 蛮牛|来自: unity3d脚本manual

摘要: animation.stop 停止functionstop() : voiddescription描述stops all playing animations that were started with this animation.停止所有当前animation正在播放的动画。stopping an animation also rewinds it to ...

animation.stop 停止

functionstop() : void

description描述

stops all playing animations that were started with this animation.

停止所有当前animation正在播放的动画

stopping an animation also rewinds it to the start.

停止一个动画会让动画重回开始位置。

c#

javascript

using unityengine;

using system.collections;

public class example :monobehaviour{

public void awake() {

animation.stop();

}

}

// stop all animations

//停止所有动画。

animation.stop();

o functionstop(name: string) : void

description描述

stops an animation named name.

停止播放名称为name的动画。

stopping an animation also rewinds it to the start.

停止一个动画会让动画重回开始位置。

c#

javascript

using unityengine;

using system.collections;

public class example :monobehaviour{

public void awake() {

animation.stop("walk");

}

}

// stop the walk animation

//停止walk动画。

animation.stop("walk");

相关阅读

文章点评
相关文章