Uploaded January 2023 | Updated September 2026, 1 hour ago
Learn how to configure Audio Sound Effects in a reusable, configuration-driven (with Scriptable Objects) way! In this video you'll learn how to configure different shooting sound effects per gun or gun category, empty fire clips, reloading clips, and last bullet clips.
This can of course be easily extended to support any number of additional clips required.
We will also continue to use the Impact Management system built in this tutorial: youtube.com/watch?v=kT2ZxjMuT_4 to handle bullet impact sound effects as well, which can be easily configured per gun type, specific gun, or generically for all guns based on the surface impact type.
Since this is part 5 of the Gun Series, if you're just now jumping in it might be a little confusing. You can watch from the beginning to see how and why each line of code exists here starting from part 1: youtube.com/watch?v=E-vIMamyORg&list=PLllNmP7eq6TQJjgKJ6FKcNFfRREe_L6to
๐ถ ALL THINGS LlamAcademy now available at: https://llamacademy.dev/support including latest tutorials, courses, ways to support, and more! Check it out ๐
๐จโ๐ป Get the FULL FREE PROJECT on GitHub: github.com/llamacademy/scriptable-object-based-guns
๐ท๏ธSave 25% on the ultimate C# IDE: JetBrains Rider with code LLAMACADEMY: jetbrains.com/store/?section=personal&billing=yearly
๐ Resources:
๐ Audio Configuration: docs.unity3d.com/Manual/class-AudioManager.html
๐ AudioSource: docs.unity3d.com/ScriptReference/AudioSource.html
๐ Sound Effects Used in the Video: assetstore.unity.com/packages/audio/sound-fx/epic-war-sound-effects-collection-81407?aid=1101l9QvC
๐ Impact Management System Tutorial: youtube.com/watch?v=kT2ZxjMuT_4
Some links may be affiliate links, which at no additional cost to you, gives me a small portion of the purchase.
Chapters:
00:00 Topic Introduction
01:35 AudioConfigScriptableObject.cs - Set up the SO
03:45 GunScriptableObject.cs - Get References to AudioConfig & AudioSource
04:15 GunScriptableObject.cs - Play Firing Sound
04:41 PlayerAction.cs - Play Reload Sound
05:25 GunScriptableObject.cs - Play Out of Ammo Sound
06:26 Create AudioConfig Scriptable Objects & Hook Audio Clips
07:40 Add Audio Source to Gun Prefabs
08:04 Play Sound on Bullet Impact using Surface Manager
09:30 Demo & A Potential Problem with High Rate of Fire Guns
10:15 A Solution to High Rate of Fire Guns Audio Issue
11:15 Demo with Solution Applied
11:40 Final Thoughts & Support LlamAcademy!
Learn how to configure Audio Sound Effects in a reusable, configuration-driven (with Scriptable Objects) way! In this video you'll learn how to configure different shooting sound effects per gun or gun category, empty fire clips, reloading clips, and last bullet clips.
This can of course be easily extended to support any number of additional clips required.
We will also continue to use the Impact Management system built in this tutorial: youtube.com/watch?v=kT2ZxjMuT_4 to handle bullet impact sound effects as well, which can be easily configured per gun type, specific gun, or generically for all guns based on the surface impact type.
Since this is part 5 of the Gun Series, if you're just now jumping in it might be a little confusing. You can watch from the beginning to see how and why each line of code exists here starting from part 1: youtube.com/watch?v=E-vIMamyORg&list=PLllNmP7eq6TQJjgKJ6FKcNFfRREe_L6to
๐ถ ALL THINGS LlamAcademy now available at: https://llamacademy.dev/support including latest tutorials, courses, ways to support, and more! Check it out ๐
๐จโ๐ป Get the FULL FREE PROJECT on GitHub: github.com/llamacademy/scriptable-object-based-guns
๐ท๏ธSave 25% on the ultimate C# IDE: JetBrains Rider with code LLAMACADEMY: jetbrains.com/store/?section=personal&billing=yearly
๐ Resources:
๐ Audio Configuration: docs.unity3d.com/Manual/class-AudioManager.html
๐ AudioSource: docs.unity3d.com/ScriptReference/AudioSource.html
๐ Sound Effects Used in the Video: assetstore.unity.com/packages/audio/sound-fx/epic-war-sound-effects-collection-81407?aid=1101l9QvC
๐ Impact Management System Tutorial: youtube.com/watch?v=kT2ZxjMuT_4
Some links may be affiliate links, which at no additional cost to you, gives me a small portion of the purchase.
Chapters:
00:00 Topic Introduction
01:35 AudioConfigScriptableObject.cs - Set up the SO
03:45 GunScriptableObject.cs - Get References to AudioConfig & AudioSource
04:15 GunScriptableObject.cs - Play Firing Sound
04:41 PlayerAction.cs - Play Reload Sound
05:25 GunScriptableObject.cs - Play Out of Ammo Sound
06:26 Create AudioConfig Scriptable Objects & Hook Audio Clips
07:40 Add Audio Source to Gun Prefabs
08:04 Play Sound on Bullet Impact using Surface Manager
09:30 Demo & A Potential Problem with High Rate of Fire Guns
10:15 A Solution to High Rate of Fire Guns Audio Issue
11:15 Demo with Solution Applied
11:40 Final Thoughts & Support LlamAcademy!










