Runtime Gun Swapping | ScriptableObject-based Gun Series Part 11 | Unity Tutorial
LlamAcademy LlamAcademy
21.2K subscribers
3,474 views
0

 Published On Jun 13, 2023

Learn how to make gun and ammo pick-ups with our Gun ScriptableObject System! Because we have a pretty clean setup for these guns, this ends up being really straightforward!

💸 Ongoing sales 💸
⚫ Check out the latest Humble Bundles https://www.humblebundle.com/software...
⚫ Publisher Sale! 50% OFF an entire publisher's Assets! Publisher changes weekly! https://assetstore.unity.com/publishe...
⚫ Save up to 50% on NEW Assets: https://assetstore.unity.com/?new_sal...

👨‍💻 As always, all code from this video is available on GitHub: https://github.com/llamacademy/script...

📚 Resources:
⚫ Full Series Playlist:    • Shooting, Simple Spread, and Bullet T...  

❤ Believe in LlamAcademy's mission and have received value from the videos? Become a Patreon Supporter or YouTube Member:
⚫ Patreon:   / llamacademy  
⚫ YouTube Member:    / @llamacademy   or click the Join button on any video

📱 Let's stay connected
YouTube:    / llamacademy  
Patreon:   / llamacademy  
Github: https://github.com/LlamAcademy

----
Most tutorials come from knowledge gained making https://survival.llama.software Llama Survival - a top-down zombie survival shooter for Android and iOS.
I also have some Unity Assets: https://assetstore.unity.com/publishe...
Some links may be affiliate links, which at no additional cost to you, gives me a small portion of the purchase.

#unitytutorial #tutorialtuesday #gamedev #tutorial #unity #llamacademy #gamedevelopment

Chapters:
00:00 Topic Introduction & Concept Overview
01:30 Gun Pickup Prefabs & Physics Configuration
03:14 Pick Up Guns - GunPickup.cs
04:36 Refactor PlayerGunSelector.cs to Support Picking Up Guns
05:42 In-Editor Configuration & Demo 1 - It Has Some Issues
07:36 Support Crosshair Modes Changing - PlayerAction.cs
07:56 Support Configuration Menu - PlayerGunSelector.cs
09:17 Pick Up Ammo - AmmoPickup.cs
10:23 Handle Adding Ammo - AmmoConfigScriptableObject.cs
10:56 Setup Ammo Pickups and Demo
12:36 Final Thoughts & Support LlamAcademy

show more

Share/Embed