Save and Load a Player Loadout | Gun Series Part 14 | Unity Tutorial @LlamAcademy
Save and Load a Player Loadout | Gun Series Part 14 | Unity Tutorial  @LlamAcademy
Uploaded October 2023 | Updated September 2026, 1 hour ago
Learn how you can save and load a player's loadout when using ScriptableObjects for your gun configurations. You'll also see how you can adapt what we've done so far for a loadout screen to integrate it into a "main menu". All with UI Toolkit!

๐Ÿ”ถ 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:
๐ŸŸ  Gun Series Playlist: youtube.com/playlist?list=PLllNmP7eq6TQJjgKJ6FKcNFfRREe_L6to
๐ŸŸ  Save and Load Data using JSON data format: youtu.be/mntS45g8OK4

Some links may be affiliate links, which at no additional cost to you, gives me a small portion of the purchase.

Chapters:
00:00 Introduction
02:18 MainMenu UXML
04:52 Add Gun Selector to Attachment Document Controller
05:51 Initial MainMenuController to go to Loadout
07:37 Demo
08:15 Begin Save
09:07 Save Data - IDataService.cs
09:41 Save Data - JsonDataService.cs
11:31 Load Data - JsonDataService.cs
12:50 Persistence Data Model - Loadout.cs
13:12 Save Loadout - AttachmentDocumentController.cs
14:30 Load Data - AttachmentDocumentController.cs
15:07 Refactor to Prevent Errors on Start
15:52 Demo
16:55 What's Left for the UI?
17:27 Menu Navigation Handling
20:30 Change Gun via Dropdown
25:46 Apply Loadout from Save & Spawn with correct gun
29:22 Final Demo
30:12 Closing Thoughts & Support LlamAcademy
Save and Load a Player Loadout | Gun Series Part 14 | Unity TutorialData Persistence - Save & load your game state while avoiding common mistakes #shortsGun Sound Effects with an Audio Config ScriptableObject | Gun Series 5 | Unity TutorialProjectile Gun Support | Scriptable Object Gun Series Part 6 | Unity Tutorial #shortsHow I made an Inverse Tower Defense game with Unity 6. Its FREE & Open Source.I accidentally created a dodgeball game with projectile motion & movement prediction #ShortsIN-EDITOR Automatic LOD Generation for 3D Models | Unity Tutorial #shortsMake (Mostly) Accurate Projectile Throwing AI at Moving Targets | Unity Tutorial #Shorts8 Inverse Kinematics Solutions in Unity Evaluated - Which should you use?Enemy State Machine AI FULL IMPLEMENTATION | AI Series 47 | Unity TutorialAnimation-driven Reloading | Gun Series 4 | Unity Tutorial #shortsDoes Animation Rigging Work on Generic (non-Humanoid) Models? | Unity Tutorial
LlamAcademy |

Save and Load a Player Loadout | Gun Series Part 14 | Unity Tutorial

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER