GameObject.audio 音频

var audio : AudioSource

Description描述

The AudioSource attached to this GameObject (Read Only). (null if there is none attached)
附属于这个游戏物体上的音频资源(只读)。(如果没有则为空)

var other : GameObject;
other.audio.Play();
最后修改:2010年12月13日 Monday 16:07

本脚本参考基于Unity 3.4.1f5

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