In this video, I show how to make a Save & Load system work across multiple scenes in Unity. The tutorial demonstrates this by adding a main menu scene and allowing the player to start a new game or continue a saved game.
The Save & Load system used in this tutorial was created in a previous tutorial that can be found here - • How to make a Save & Load System in U...
Thank you for watching and I hope the video was helpful! 🙂
► SAVE & LOAD SYSTEM TUTORIAL PLAYLIST
The full Save & Load System tutorial playlist that this video is part of can be found here.
• How to make a Save & Load System in U...
► TIMESTAMPS
0:00 Intro
0:54 Recap of Save & Load System
2:05 How Scene Transitions Work
3:24 How DontDestroyOnLoad Works
4:20 Project Overview
5:02 Turning the DataPersistenceManager into a Prefab
5:29 Creating the Main Menu Scene
10:00 Adding the sceneLoaded and sceneUnloaded events
12:35 Transitioning from the Main Menu Scene
15:00 Adding DontDestroyOnLoad
16:46 Small changes to LoadGame and SaveGame
17:58 Disabling the Continue Button
19:02 Playing from any Scene in Development
20:36 Outro
► RESOURCES
DontDestroyOnLoad documentation
https://docs.unity3d.com/ScriptRefere...
SceneLoaded documentation
https://docs.unity3d.com/ScriptRefere...
SceneUnloaded documentation
https://docs.unity3d.com/ScriptRefere...
Excellent introduction tutorial to Unity’s new Input System
• How to use Unity's Input System
► GITHUB PROJECT
The '2-save-load-implemented' branch is the starting point of the project for this tutorial and the '3-load-across-scenes-implemented' branch is the end result.
https://github.com/shapedbyrainstudio...
► MUSIC
The backing music is custom made by @themaykit.
/ themaykit
► DISCORD
Come ask questions, suggest a video topic, or just hang out!
📱Discord ➔ / discord
► THE PATH OF REN
Wishlist The Path of Ren on Steam!
🎮 Steam (The Path of Ren) ➔ https://store.steampowered.com/app/16...
► SOCIAL MEDIA LINKS
🐦 Twitter ➔ / shapedbyrain
📷 Instagram ➔ / shapedbyrainstudios
🕑 TikTok ➔ / shapedbyrainstudios
🌐 Website ➔ https://ShapedByRainStudios.com
► SUPPORT
Any support is much appreciated! I may receive a commission on any assets purchased using the below Unity Asset Store link.
🛍️ Unity Asset Store Affiliate Link ➔ https://assetstore.unity.com/?aid=110...
☕ Buy me a coffee! (Ko-fi) ➔ https://ko-fi.com/ShapedByRainStudios
#gamedev #unity2d #unity