audioclip.isreadytoplay 是否准备好播放

2015-1-3 00:47| 发布者: 杨炎| 查看: 2071| 评论: 0|原作者: 蛮牛|来自: yzc88亚洲城脚本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();

}

相关阅读

文章点评
相关文章