AudioSource Inherits from BehaviourA representation of audio sources in 3D. An AudioSource is attached to a GameObject for playing back sounds in a 3D environment. In order to play 3D sounds you also need to have a AudioListener. The audio listener is normally attached to the camera you want to use. Whether sounds are played in 3D or 2D is determined by AudioImporter settings. You can play a single audio clip using Play, Pause and Stop. You can also adjust its volume while playing using the volume property, or seek using time. Multiple sounds can be played on one AudioSource using PlayOneShot. You can play a clip at a static position in 3D space using PlayClipAtPoint. See Also: AudioListener, AudioClip, AudioSource component. Variables
Functions
Class Functions
Inherited members
Inherited Variables
Inherited Functions
Inherited Class Functions
|
