audiochorusfilter.isplaying 正播放?

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

摘要: audiosource.isplaying 正播放?varisplaying: booldescription描述is theclipplaying right now (read only)?剪辑现在正在播放(只读)?note:audiosource.isplayingwill return false whenaudiosource.pause() is ...

audiosource.isplaying 正播放?

varisplaying: bool

description描述

is theclipplaying right now (read only)?

剪辑现在正在播放(只读)?

note:audiosource.isplayingwill return false whenaudiosource.pause() is called. when you useaudiosource.play() again back, it will return true.

注意:当audiosource.pause()被调用,audiosource.isplaying将返回false。当使用audiosource.play()再次播放,将返回true。

c#

javascript

using unityengine;

using system.collections;

public class example :monobehaviour{

publicaudioclipotherclip;

void update() {

if (!audio.isplaying) {

audio.clip = otherclip;

audio.play();

}

}

}

// when the audio component has stopped playing, play otherclip

//当音频组件被停止播放,播放otherclip

var otherclip :audioclip;

function update (){

if (!audio.isplaying){

audio.clip = otherclip;

audio.play();

}

}

相关阅读

文章点评
相关文章