找回密碼
 注冊帳號

掃一掃,訪問微社區

audioclip.length 長度

2015-1-3 00:57| 發布者: 楊炎| 查看: 2144| 評論: 0|原作者: 蠻牛|來自: unity3d腳本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);

相關閱讀

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