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: • Impact Effects with Scriptable Object... 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: • Shooting, Simple Spread, and Bullet T...
👨💻 As always, all code from this video is available on GitHub: https://github.com/llamacademy/script...
🏷️Save 25% on the ultimate C# IDE: JetBrains Rider with code LLAMACADEMY: https://www.jetbrains.com/store/?sect...
📚 Resources:
⚫ Audio Configuration: https://docs.unity3d.com/Manual/class...
⚫ AudioSource: https://docs.unity3d.com/ScriptRefere...
⚫ Sound Effects Used in the Video: https://assetstore.unity.com/packages...
⚫ Impact Management System Tutorial: • Impact Effects with Scriptable Object...
🧡 Believe in LlamAcademy's mission and have received value from the videos? Here's how you can show your support:
🌟 Patreon: / llamacademy
🌟 YouTube Member: / @llamacademy or click the Join button on any video
📚 Take my Unity ShaderGraph Course:
https://www.gamedev.tv/p/unity-shader...
👕 Get yourself some LlamAcademy merch: https://llamacademy.myspreadshop.com/
💸 Use my Affiliate Link for Humble Bundles https://humblebundleinc.sjv.io/9g4ak4
💸 Publisher Sale! 50% OFF an entire publisher's Assets! Publisher changes weekly! https://assetstore.unity.com/publishe... (affiliate)
💸 Save up to 50% on NEW Assets: https://assetstore.unity.com/?new_sal... (affiliate)
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!
Watch video Gun Sound Effects with an Audio Config ScriptableObject | Gun Series 5 | Unity Tutorial online without registration, duration hours minute second in high quality. This video was added by user LlamAcademy 03 January 2023, don't forget to share it with your friends and acquaintances, it has been viewed on our site 7,552 once and liked it 206 people.