View by Component
Physics , Physics 2D , Audio , UI , Tilemap , Cinemachine , Timeline , Network , Animation , Animator , Sprites , Scripting , Tips , Colliders , 2D Colliders , Rigidbody , Rigidbody 2D , Interaction , Editor , Game Mechanics , In-App Purchase , Material , General , Prefab , ProGrids , Light , Rendering , Ads , Scriptable Objects , Events , Level Design , Making Of , Assets , Procedural , ProBuilder , Particles , Machine Learning , News & Announcements , Conference , Enemy & NPC , PlayerPrefs , Post Processing , Interview , Shader , VFX , TextMeshPro , InputSystem , XR
How to make a Save & Load System work across Multiple Scenes in Unity | 2022 tutorial
Uploaded by Trever MockShare: Twitter Facebook
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 - https://www.youtube.com/watch?v=aUi9aijvpgs&t
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.
https://www.youtube.com/watch?v=aUi9aijvpgs&list=PL3viUl9h9k7-tMGkSApPdu4hlUBagKial
► 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/ScriptReference/Object.DontDestroyOnLoad.html
SceneLoaded documentation
https://docs.unity3d.com/ScriptReference/SceneManagement.SceneManager-sceneLoaded.html
SceneUnloaded documentation
https://docs.unity3d.com/ScriptReference/SceneManagement.SceneManager-sceneUnloaded.html
Excellent introduction tutorial to Unity’s new Input System
https://www.youtube.com/watch?v=m5WsmlEOFiA&t
► 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/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
The Save & Load system used in this tutorial was created in a previous tutorial that can be found here - https://www.youtube.com/watch?v=aUi9aijvpgs&t
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.
https://www.youtube.com/watch?v=aUi9aijvpgs&list=PL3viUl9h9k7-tMGkSApPdu4hlUBagKial
► 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/ScriptReference/Object.DontDestroyOnLoad.html
SceneLoaded documentation
https://docs.unity3d.com/ScriptReference/SceneManagement.SceneManager-sceneLoaded.html
SceneUnloaded documentation
https://docs.unity3d.com/ScriptReference/SceneManagement.SceneManager-sceneUnloaded.html
Excellent introduction tutorial to Unity’s new Input System
https://www.youtube.com/watch?v=m5WsmlEOFiA&t
► 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/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