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
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










