Game Development Reference
In-Depth Information
3D vs. 2D Sound Properties
Whether or not an audio clip is 2D or 3D depends upon its import settings. 3D audio refers to sound
in the 3D game world. Audio Sources can be attached to game objects throughout the game scene.
The volume of 3D sound varies with the distance and movement of the Audio Listener.
2D sound plays at the same volume regardless of the position of the Audio Listener. Its only property,
Pan , controls the volume between two speakers, where the default 0 means the two speakers play
the sound at equal volumes. Moving the slider left increases the volume out of the left speaker, while
moving the slider to the right increases the volume out of the right speaker (Figure 11-10 ).
Figure 11-10. 3D and 2D Sound Setting properties in the Inspector
3D sound can be fine-tuned via the 3D Sound Settings properties. The Doppler Level distorts the
sound based on movement to create a Doppler-like effect where the sound is of a higher pitch when
moving towards the sound source and lower when moving away from the sound source.
 
Search WWH ::




Custom Search