animationstate.length 长度

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

摘要: animationstate.length 长度varlength: floatdescription描述the length of the animation clip in seconds.动画剪辑的长度,单位是秒。c#javascriptusing unityengine;using system.collections;public class examp ...

animationstate.length 长度

varlength: float

description描述

the length of the animation clip in seconds.

动画剪辑的长度,单位是秒。

c#

javascript

using unityengine;

using system.collections;

public class example :monobehaviour{

public void awake() {

print(animation["walk"].length);

}

}

// print the length of the walk animation in seconds

// 打印walk动画的长度

print (animation["walk"].length);

相关阅读

文章点评
相关文章