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

preview_player
Показать описание
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

Join my Discord server to chat and mingle with the community

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
Рекомендации по теме
Комментарии
Автор

Hey, we would love to see an inventory system tutorial series from you man. Watched your smart enemy Ai series and its amazing and the best Ai series so far on Youtube. Keep up the good work!!!

Techadron
Автор

I am mostly commenting for the algorithm, but your content is of the highest quality for the unreal engine i have come across. Keep up the amazing high-quality content! I love how descriptive you are on the reasons to do each step and its less like a tutorial to get the system into the game and more a tutorial on how to use the tools of Unreal Engine in a logical fashion. Thank you!

rogerfoster
Автор

I really appreciate that you teach correct design patterns. A lot of channels just go with the naive solutions and don't even allude to a better way existing. I'm right now coming from having written a "quick and dirty" prototype, and going into rebuilding a proper production codebase. Your channel is so perfect for me right now, these are all the exact things I need to be thinking about.

lorenfulghum
Автор

You the first guy I see making a save and load tutorial very clearly I watched the entire video without getting bored. I really want to see more tutorial from you man, Keep up the good work.

حاتمإسماعيل-بر
Автор

I have been working with Unreal for over 2 years and have seen hundreds of tutorial videos from nearly a hundred creators. This is by far the best tutorial presentation on an Unreal topic I've seen. I don't like comparing people, but if I had to, I'd say that "at last, we've found the Brackeys for Unreal." Well done, sir!

BlueSpawn
Автор

Seen a couple of your tutorials, and just wanted to compliment you on teaching good coding.. Instead of "bad coding for the sake of this tutorial"..
Keep up the good work..
Too many creators cut corners with bad practices, which in turn really dosn't teach anything useful..

TheWufstyle
Автор

I think your channel is the first one I've watched that taught me anything useful.

GorblinRat
Автор

"Not all heroes wear capes"
Thank you so much

CyberHobbit
Автор

As a gamedev student in the fith term I can't thank you enough! This time we are completly free in choice of the genre and you are an absolute beast explaining things like this! I really hope you continue with the videos man, great work!

XehanortLP
Автор

boy this tutorial saved my ass much !! best tutorial I had seen so far after 10 months on unreal engine and you explained everything in detailed !! subscribed and love!

vvjj
Автор

Look, I’ve been working in unreal for a few years now and I’ve created some decent save and load system but this right here is gold. I never understood why people create save and load method in the player character or game mode 😂😂😂 thank you mate

youngjojo
Автор

Really appreciate these tutorials and how in depth you explain things. I like to understand why I'm doing something and not just copy and paste. Keep em coming!

AaronStumpDesings
Автор

OMG. I finally found someone on YT who is able to provide industry level information. This stuff is very usable and I couldn't be more grateful for this content! <3

PhilippIllmer
Автор

Thank you so much. you are legend man. The most important thing in the game is main menu, Setting menu, saving and loading system.

nassergreatdeveloper
Автор

Amazingly detailed enough for me to implement it for something totally different I was saving, thank you!

OpinionatedHuman
Автор

Had to comment, this level of detailed explanation has been very helpful.
Currently, I'm attempting to have the game create a new save slot each time a new game has started and the information of those slots updated in the load game widget.
So far it's gone horribly, but I appreciate you showing where the best places to store and retrieve data should live.

crsbecausecrswastaken
Автор

This was really useful, thanks a lot! A useful addition to this tutorial would be to save things like enemies, their position, health, alert state, if they're dead, etc- especially since you've got your series on enemy AI. The cube position was useful but it feels like this can get really complex really fast.

perochialjoe
Автор

Now that was very helpful! Best save/load system explanation I've seen so far. Thank you very much for this tutorial, it really made my work a bit easier.

artkalm
Автор

Another thank you my friend. Spent the weekend revamping my save load system using this method. I had surprisingly few issues given the complexity of my setup. It is a vast improvement. I had function logic in BP_SaveGame and it confused my brain. This is easier to track and follow.

OverlandBound
Автор

This is wonderful, I felt like I was in a college class. You are a great teacher

CloudlessStudio