function Stop () : void
Description描述
Stops playing the clip.
停止播放该剪辑。
using UnityEngine; using System.Collections; public class example : MonoBehaviour { void Awake() { audio.Stop(); } }
audio.Stop();
参见:Play, Pause, clip函数
本脚本参考基于Unity 3.4.1f5