MENU

Fun & Interesting

The ultimate guide | How to Save & Load your unreal engine 5 game | ue5

Ali Elzoheiry 65,786 1 year ago
Video Not Working? Fix It Now

This video will teach you how to save and load your unreal engine 5 game in the most scalable and flexible way. I aim to teach you good code architecture and how to structure your systems in a way that makes them easily reusable, maintainable and scalable. By the end you will have a system that contains a reusable save and load system that can be copied into any project, and extendable with custom save functions for a specific project. The common BPI_SaveGame interface functions for any project are (LoadGameData, SaveGameData, and GetGameData) these can be used as is, then for each different project you can simply implement additional custom functions (Like the SavePlayer and SaveCubes that are specific for this project) Download the project files and support my channel on Patreon https://www.patreon.com/Alizoh Join my Discord server to chat and mingle with the community https://discord.gg/AEnM4wvYzN Chapters: 00:00 Intro 01:20 Explaining my level 02:19 Creating the SaveGame class (The data structure) 07:20 Explaining the UE save and load functions 09:40 Why use GameInstance? 10:38 Creating our custom GameInstance object 11:39 Creating and explaining the interface (BPI_SaveGame) 14:45 Implementing the Save & Load functions in GameInstance 20:15 Creating the checkpoint actor to save the player state 22:20 Explaining the WRONG way to save data 23:22 Explaining the RIGHT way to save data (Adding to the interface) 24:09 Implementing SavePlayer function 27:40 Using saved data in the player 32:31 Where is the save file located? 33:07 Implementing the SaveCubeTransforms function 36:49 Using saved data to spawn cubes in the level 39:35 Saving cubes on spawn and destroy 41:07 Saving cubes on update 44:11 Adding a "Saving Game..." indicator 49:12 Extended version (Async loading) 49:43 Outro About me: I've been learning game development for a few years now, I do have a background in software engineering, and I also have a background in education, so being able to combine my love of gaming, software engineering and education is the best way to spend my time. I am currently working on a few unreal engine games as a hobby, but I am also trying to build a community, thus I am creating YouTube tutorials to find others who are interested in game development and design. #unrealengine #unrealengine5 #ue5 #gamedev #tutorial #saving #loading #system

Comment