Adding Sound Effects to my Unity Project

<p>After adding music to my game, now I need to implement some sound effects. Specifically in this case explosions, laser sounds, and power up effects (all from the usual assets from&nbsp;<a href="http://gamedevhq.com/" rel="noopener ugc nofollow" target="_blank">GameDevHQ</a>).</p> <h2>Exploding Asteroid</h2> <p>To make my&nbsp;<strong>Asteroid&nbsp;</strong>explode, I initially used a prefab to animate its explosion. The prefab (called&nbsp;<strong>Explosion</strong>) was called in the case of the Asteroid being hit with a laser, and was set to animate at the site of the Asteroid.</p> <p><img alt="" src="https://miro.medium.com/v2/resize:fit:770/1*503IlHsLkyvLHFN7InIXnA.png" style="height:548px; width:700px" /></p> <p>The code within my Asteroid object to call on the&nbsp;<strong>_explosionPrefab</strong></p> <p>So to make the Asteroid also play an explosion sound, it was a similar process. I just had to add a Audio Source component to the Explosion prefab that automatically played once it was called into existence.</p> <p><a href="https://medium.com/@shane.makanuilopes/adding-sound-effects-to-my-unity-project-72dceea536a0"><strong>Read More</strong></a></p>
Tags: Sound Effects