找回密碼
 注冊帳號

掃一掃,訪問微社區

animationstate.time 時間

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

摘要: animationstate.time 時間vartime: floatdescription描述the current time of the animation動畫當前時間if the time is larger than length it will be wrapped according to wrapmode. the value can be larger th ...

animationstate.time 時間

vartime: float

description描述

the current time of the animation

動畫當前時間

if the time is larger than length it will be wrapped according to wrapmode. the value can be larger than the animations length. in this case playback mode will remap the time before sampling. this value usually goes from 0 to infinity

如果時間大于長度它將按照wrapwode循環.該值可以大于動畫的長度.在這種情況下回放模式將在采樣前重映射時間.這個值通常從0到無窮.

c#

javascript

using unityengine;

using system.collections;

public class example :monobehaviour{

public void awake() {

animation["walk"].time = 0.0f;

}

}

// rewind the walk animation

// 將walk動畫置為初始

animation["walk"].time = 0.0;

相關閱讀

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