Shooting, Simple Spread, and Bullet Trails in a ScriptableObject-Based Gun System | Unity Tutorial
Learn how to create a ScriptableObject-based gun system from scratch for your game! In this video, which is part 1 of a much larger gun system series, we'll create 3 ScriptableObjects to control our Gun, Bullet Trails, and Shoot Configurations for 2 types of guns. Specifically, we're doing "Hitscan" or Raycast shooting in this video. In this video I DO NOT cover the Impact System: • Impact Effects with Scriptable Objects | U... you can check out that video for the full explanation for how that works That’s for the SurfaceManager and ImpactType both. If you’re not interested in using that system for impacts, feel free to just remove that code! Everything will still work! PlayerIK is a very simple demo script implemented solely for the demo. As I mention in the video, this will be covered in the future, so you can skip that part for now, or check out the project on GitHub to see that naïve implementation. In this series you'll learn how to make a configuration-driven gun system with ScriptableObjects that will be able to have: ⚫ Hitscan Guns - Covered in THIS VIDEO! ⚫ Projectile Guns ⚫ Simple Bullet Spread - Covered in THIS VIDEO! ⚫ Complex Bullet Spread ⚫ Reloading ⚫ Attachments ⚫ Animated Models ⚫ Simple Impact Damage ⚫ Damage Effects such as burning, freezing, explosions, etc... ⚫ And even more! 👨💻 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... 📚 References ⚫ Unity 2021 Object Pool: • Unity 2021 Object Pool API - What is Objec... ⚫ Impact System: • Impact Effects with Scriptable Objects | U... ⚫ Scriptable Objects, Explained: • ScriptableObjects, Explained | Unity Tutorial ⚫ Lerping Fundamentals: • Lerping Fundamentals - Learn How to Use It... 🧡 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 Intro & Overview 01:43 Why ScriptableObjects over Prefabs? 02:35 GunType.cs 02:48 ShootConfigScriptableObject.cs 03:28 TrailConfigScriptableObject.cs 04:26 GunScriptableObject.cs - Variables 05:45 GunScriptableObject.cs - Spawn() 06:33 GunScriptableObject.cs - CreateTrail() 07:15 GunScriptableObject.cs - Shoot() 09:14 GunScriptableObject.cs - PlayTrail() 10:47 Design Discussion 11:27 GunScriptableObject.cs - Adding Impact Effects with SurfaceManager 12:22 Become a Supporter 12:53 PlayerGunSelector.cs 14:28 PlayerAction.cs 15:08 Creating & Configuring the Gun ScriptableObjects 19:48 Demo 21:00 Closing Thoughts on this Implementationver

Procedural Recoil and Bullet Spread | Gun Series 2 | Unity Tutorial

Make Systems Not Games

REALISTIC Foot Placement Using IK in Unity

Damage Enemies and Objects with Guns | Gun Series 3 | Unity Tutorial

Skycrop Game Dev - DAY 2 - Working on tile system

Projectile Guns | Scriptable Object Gun Series 6 | Unity Tutorial

20 Advanced Coding Tips For Big Unity Projects

Bake any motion to Unity Animation Clips - Unity 2020.3

I Learned How to React Faster

The Most Inventive Anti-Cheats in Gaming History

How to make the Best Player Controller in Unity

Aiming with Inverse Kinematics (IK) and Animation Rigging | Gun Series 12 | Unity Tutorial

Weapon System Tutorial in Unity | FPS Series Part 02

He called my Game BAD, he was so WRONG | Devlog

How to Retarget Animations with Inverse Kinematics & Animation Rigging | Unity Tutorial

I turned BeamNG into a Flight Simulator

How Bullets Work In Games - Loadout

Weapon Sway And Bobbing Without Animations - #Unity Tutorial

How I Made a Satisfying FPS Controller

