AudioSource.clip 剪辑

var clip : AudioClip

Description描述

The default AudioClip to play

默认播放的音频剪辑。

var otherClip: AudioClip;

// Play default sound
//播放默认的声音
audio.Play();

// Wait for the audio to have finished
//等待音频完成
yield WaitForSeconds (audio.clip.length);

// Assign the other clip and play it
//分配其他剪辑并播放
audio.clip = otherClip;
audio.Play();
最后修改:2011年4月5日 Tuesday 11:45

本脚本参考基于Unity 3.4.1f5

英文部分版权属©Unity公司所有,中文部分© Unity圣典 版权所有,未经许可,严禁转载 。