How to Create a Simple Sound Effects Handler (Unity3D, C#)

preview_player
Показать описание
In this quick bit tutorial, we create a sound effect handler that will store a library of sound effects, maintain a number of audio sources (with an upper limit on how many), and play one of those sounds upon request, placing the audio source at a desired location in 3D space.

This method is useful for games where there may be a lot of random sounds being played at various locations, but the sounds are rare enough that it's not worth dedicating a whole audio source to that one sound.

Let me know what you think in the comments below. If you've got anything you'd like me to cover in a quick bit video, comment that too!

-----------------------------------------------------------------------------------

Get the code here;

-----------------------------------------------------------------------------------

SOCIAL STUFF!

Рекомендации по теме
Комментарии
Автор

First view! Excited to check this out, cheers

chriscamarata