How to make a Save & Load System work across Multiple Scenes in Unity | Tutorial
Shaped by Rain Studios
View ChannelAbout
Hey there, my name's Trever. A great idea starts as a drop of inspiration, but just as the rain shapes the earth, it’s the consistent nurturing, effort, and perseverance that shapes that idea into something extraordinary. Shaped by Rain Studios is my solo venture that exists to help driven, creative people build projects they’re passionate about through practical education, tools, and thought-provoking content. I hope the things that I create will help you in your own creative endeavors!
Latest Posts
Video Description
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/shapedbyrainstudios/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 🐦 Twitter ➔ https://twitter.com/ShapedByRain 📷 Instagram ➔ https://instagram.com/ShapedByRainStudios 🕑 TikTok ➔ https://tiktok.com/@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=1100lrxm5 ☕ Buy me a coffee! (Ko-fi) ➔ https://ko-fi.com/ShapedByRainStudios #gamedev #unity2d #unity
Upgrade Your Gaming Setup
AI-recommended products based on this video

Asus ROG Strix 1000W Gold Aura Edition (Fully Modular Power Supply, 80+ Gold Certified, ATX 3.0, Cybenetics Lambda A+ Certification, PCIe Gen 5.0 Ready, Axial-tech Fan, Aura Sync, 10-Year Warranty)

100W USB C Universal Laptop Charger Fit for Lenovo MacBook HP Dell Acer Asus Thinkpad Google MSI LG Samsung Huawei, ROG Ally, Steam Deck, Chromebook Computer and All USB-C Devices

Logitech G502 HERO High Performance Wired Gaming Mouse, HERO 25K Sensor, 25,600 DPI, RGB, Adjustable Weights, 11 Programmable Buttons, On-Board Memory, PC / Mac, Black

Razer BlackShark V2 X Gaming Headset: 50mm Drivers - Cardioid Mic - Memory Foam Cushion - Lightweight- Comfortable, Noise Isolating Earcups - for PC, PS4, PS5, Switch - 3.5mm Audio Jack - Black ECOLOGO

New SteelSeries Arctis Nova Pro for Xbox Multi-System Gaming Headset - Premium Hi-Fi Drivers - Hi-Res Audio - 360° Spatial - GameDAC Gen 2 - Quad-DAC - ClearCast Gen 2 Mic - Xbox, PC, PS5/PS4, Switch

NEW SteelSeries Arctis Nova 3 Multi-Platform Gaming Headset - Signature Arctis Sound - ClearCast Gen 2 Mic - PC, PS5/PS4, Xbox Series X|S, Switch, Mobile

HP Victus 15.6" 144Hz FHD Gaming Laptop, Intel i5-12450H, 32GB RAM, 1TB PCIe SSD, NVIDIA GeForce RTX 3050, Backlit Keyboard, HD Webcam, Win 11, Blue, 256GB Docking Station Set

Acer Swift X 14" FHD Laptop, AMD Ryzen 7 5825U, NVIDIA GeForce RTX 3050Ti, 16GB RAM, 512GB SSD, Windows 11 Home

CORSAIR iCUE Link XD5 RGB Elite LCD Pump-Reservoir Unit - D5 PWM Pump - 480x480 IPS LCD Screen - 22 Addressable RGB LEDs - 440ml Nylon Reservoir - White

CORSAIR iCUE Link XC7 RGB Elite CPU Water Block - Transparent Flow Chamber - 24 RGB LEDs - Fits Intel® LGA 1700, AMD® AM5 and Older - White

CORSAIR Hydro X Series iCUE Link XH405i Custom Cooling Kit – Hardline Water Cooling Loop – XC7 Elite CPU Water Block – XD5 Elite D5 Pump Res – XR5 360mm Radiator – 3X QX120 RGB Fans

Logitech M185 Wireless Mouse, 2.4GHz with USB Mini Receiver, 12-Month Battery Life, 1000 DPI Optical Tracking, Ambidextrous, Compatible with PC, Mac, Laptop - Black

Logitech G305 LIGHTSPEED Wireless Gaming Mouse, Hero 12K Sensor, 12,000 DPI, Lightweight, 6 Programmable Buttons, 250h Battery Life, On-Board Memory, PC/Mac - Black

Logitech K400 Plus Wireless Touch TV Keyboard With Easy Media Control and Built-in Touchpad, HTPC Keyboard for PC-connected TV, Windows, Android, Chrome OS, Laptop, Tablet - Black




