Wednesday 9 May 2012

Unity - Sound

Introducing sound to Unity projects is also a simple process. An MP3 file can be directly transferred for use in Unity, and assigned to an object, usually a cube which through disabling the mesh renderer can be made invisible. The sound can be a 2D or 3D sound; a 2D sound will occur universally wherever the player is and is suitable for ambient sounds such as wind. 

3D wounds occur only at a certain area and are surround sound, better suited to sounds for fireplaces. The sound file can be made to loop repeatedly, and either happen when clicked on or interacted with, or to play immediately and automatically if Play On Awake is enabled. The volume at which players hear the sound at whatever distance can be adjusted through the Rolloff Mode editor. 



I have used both 2D and 3D sounds in my game environment for fireplaces, musical instruments playing, wind, and the sound of crickets at night - all of which breathe life into the game environment and make it much more immersive. I believe the power of sound in video games is very often underestimated or not used to it's fullest potential.

No comments:

Post a Comment