audioclip.length 长度

2015-1-3 00:57| 发布者: 杨炎| 查看: 1854| 评论: 0|原作者: 蛮牛|来自: yzc88亚洲城脚本manual

摘要: audioclip.length 长度varlength: floatdescription描述the length of the audio clip in seconds (read only)以秒为单位,音频剪辑的长度。(只读)c#javascriptusing unityengine;using system.collections;public ...

audioclip.length 长度

varlength: float

description描述

the length of the audio clip in seconds (read only)

以秒为单位,音频剪辑的长度。(只读)

c#

javascript

using unityengine;

using system.collections;

public class example :monobehaviour{

public ienumerator awake() {

audio.play();

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

}

}

audio.play();

// wait for the audio to have finished

//等待音频播放完成

yield waitforseconds (audio.clip.length);

相关阅读

文章点评
相关文章