找回密碼
 注冊帳號

掃一掃,訪問微社區

audioclip.isreadytoplay 是否準備好播放

2015-1-3 00:47| 發布者: 楊炎| 查看: 2523| 評論: 0|原作者: 蠻牛|來自: unity3d腳本manual

摘要: audioclip.isreadytoplay 是否準備好播放varisreadytoplay: booldescription描述is a streamed audio clip ready to play? (read only)流式的音頻剪輯已經準備好播放么?(只讀)if the audioclip is downloading fr ...

audioclip.isreadytoplay 是否準備好播放

varisreadytoplay: bool

description描述

is a streamed audio clip ready to play? (read only)

流式的音頻剪輯已經準備好播放么?(只讀)

if the audioclip is downloading from a web site, this returns if enough data has been downloaded so playback should be able to start without interruptions. for audioclips not associated with a web stream, this value always returns true.

如果音頻剪輯是從網站上下載,此變量用來判斷下載到的數據是否足夠不間斷的播放。對于不是來自web流的音頻剪輯,這個值總是返回true。

c#

javascript

using unityengine;

using system.collections;

public class example :monobehaviour{

void start() {

wwwwww = newwww("www.example.com");

audio.clip = www.audioclip;

}

void update() {

if (!audio.isplaying && audio.clip.isreadytoplay)

audio.play();

}

}

function start () {

var www :www= newwww("www.example.com");

audio.clip = www.audioclip;

}

function update () {

if(!audio.isplaying && audio.clip.isreadytoplay)

audio.play();

}

相關閱讀

文章點評
相關文章
极速时时彩开奖最快的网站