Save & Load System in Unity - Bug Fixes, Scriptable Objects, Deleting Data, Backup Files, and More

Uploaded by Trever Mock
Share: Twitter Facebook
This video wraps up the previous Save & Load System tutorials I've done by fixing some bugs, answering some frequently asked questions, and adding some extra polish and reliability to the system.

Topics include various bug fixes and improvements from the previous tutorials, saving data from scriptable objects, deleting profile data, adding a confirmation prompt, backing up save files, and more!

The video is separated by timestamps where each timestamp is mostly independent from the others in the video. So feel free to skip passed timestamps that don't interest you.

Thank you for watching and I hope you found something useful out of this video! ?

► SAVE & LOAD SYSTEM TUTORIAL PLAYLIST
The full Save & Load System tutorial playlist that this video is part of can be found here.
https://www.youtube.com/watch?v=aUi9aijvpgs&list=PL3viUl9h9k7-tMGkSApPdu4hlUBagKial

► TIMESTAMPS
0:00 Intro
0:42 Removing the 'ref' keyword
1:42 Removing the sceneUnloaded event (MissingReferenceException)
3:41 Setting the first selected button alternative
5:15 Persisting data for Inactive (disabled) GameObjects
6:08 Persisting data for Scriptable Objects
10:51 Deleting Data for a Save Slot
16:20 Creating a Confirmation Popup
23:55 Improving Auto Saving
26:47 Backing up Data Files
32:26 Outro

► RESOURCES
Ref keyword and when to use it - https://www.educative.io/edpresso/what-is-the-ref-keyword-in-c-sharp
Ref keyword C# docs - https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/ref
SceneUnloaded Event Unity Docs - https://docs.unity3d.com/ScriptReference/SceneManagement.SceneManager-sceneUnloaded.html
FindObjectsOfType Unity Docs - https://docs.unity3d.com/ScriptReference/Object.FindObjectsOfType.html
Excellent tutorial by Samyam on Scriptable Objects - https://www.youtube.com/watch?v=cy49zMBZvhg
Thread that discusses complications with serializing Scriptable Objects - https://forum.unity.com/threads/serialize-scriptableobject.384065/
Scriptable Objects Unity Docs - https://docs.unity3d.com/Manual/class-ScriptableObject.html

► GITHUB PROJECT
The '4-save-slots-implemented' branch is the starting point of the project for this tutorial and the '5-bug-fixes-and-polish' branch is the end result.
https://github.com/trevermock/save-load-system

► MUSIC
The backing music is custom made by @themaykit.
https://www.instagram.com/themaykit/

► DISCORD
Come ask questions, suggest a video topic, or just hang out!
?Discord ➔ https://discord.gg/99gcnaHFf9

► THE PATH OF REN
Wishlist 'The Path of Ren' on Steam!
? Steam (The Path of Ren) ➔ https://store.steampowered.com/app/1619920

► SOCIAL MEDIA LINKS
Follow my current project!
? Twitter ➔ https://twitter.com/trevermock
? Instagram ➔ https://instagram.com/trevermock/
? TikTok ➔ https://tiktok.com/@trevermock
? Website ➔ https://shapedbyrainstudios.com/

► SUPPORT
Any support is much appreciated! I'll receive a commission on any assets purchased using the below Unity Asset Store link.
?️ Unity Asset Store Affiliate Link ➔ https://assetstore.unity.com/?aid=1100lrxm5
☕ Buy me a coffee! (Ko-fi) ➔ https://ko-fi.com/trevermock

#gamedev #unity2d #unity