animationclip.length 动画长度

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

摘要: animationclip.length 动画长度varlength: floatdescription描述animation length in seconds (read only)动画的长度,以秒计算(只读)c#javascriptusing unityengine;using system.collections;public class examp ...

animationclip.length 动画长度

varlength: float

description描述

animation length in seconds (read only)

动画的长度,以秒计算(只读)

c#

javascript

using unityengine;

using system.collections;

public class example :monobehaviour{

public ienumerator awake() {

animation.play();

yield return new waitforseconds(animation.clip.length);

}

}

animation.play();

// 等待动画完成

yield waitforseconds (animation.clip.length);

相关阅读

文章点评
相关文章