找回密碼
 注冊帳號

掃一掃,訪問微社區

animation.stop 停止

2014-12-31 02:30| 發布者: 楊炎| 查看: 1846| 評論: 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");

相關閱讀

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