EVERYTHING you need to know to SAVE and LOAD your game in Unity

preview_player
Показать описание

--
In this video I'll show you how to make a complete save and load system from scratch, and I go through several different scenarios and examples to ensure you can take this system and run with it for your own games!
We use the JSON Utility to write our files to a file, I'll show you how to save both synchronously, and asynchronously, AND how to encrypt your save file (or keep it human readable if you want)
There's lots to go through here so I go through things pretty fast.

Hope you enjoy!

--
Timestamps:

00:00 - Intro
00:24 - Saving the Player's position
01:51 - Setting up the SaveSystem
04:55 - Saving player upgrades/powerups
06:21 - Saving currency (and updating UI)
07:24 - Saving number of (and position of) enemies in each scene
11:03 - Saving which scene to load into
14:20 - Setting up async saving and loading
18:37 - Encrypting your save data

---
Unity persistent data path:

---
---

Link to Download the FREE 2D Asset Pack:

Who We Are-------------------------------------

If you're new to our channel, we're Brandon & Nikki from Sasquatch B Studios. We sold our house to start our game studio, and work full time on building our business and making our game, Samurado.

Don't forget to Subscribe for NEW game dev videos every Monday & Thursday!

Wishlist Samurado!

Follow us on Twitter for regular updates!

#unitytutorial #unity2d #unity3d
Рекомендации по теме
Комментарии
Автор

The consistency with which you make new content is enviable. Thanks for all the hard work you put into your videos - they've helped me grow as a developer and move from crappy games held together by duct tape and prayer to reliable scalable systems. I really like your code style and your neatness in general. It's rare to find such a thing on YouTube. It's obvious that you take pride in your craft. That's something to be respected. Good luck to you and your wife with your game!

capilover
Автор

I am new to programming and slow with c# so I cant keep up with your speed yet, but many of your videos are topics that I am very interested in learning, and I like how you do programming, so thank you for putting these videos up! I subbed! I loved your video on loading scenes in the background! thank you thank you!

Putanothersockinit
Автор

Thank you very much for this tutorial. It helped me a ton with an issue I was trying to fix for 3 days !

HexedDev
Автор

Very nice Brandon. I'd like to see a follow-up video where you cover using Unity's Cloud Save to save game data in the cloud.

midniteoilsoftware
Автор

Best video, i was looking or new save and load system for long time thanks 🔥 🔥

rhushigulave
Автор

Many thanks for this video, liked even before watching. I am at work so will watch later when I get home thanks again :)

harneetsingh
Автор

thankyou for this! it helped a lot i have a basic functioning save system i can add things to now. much better than wasting days and $100 on an asset

OrangeCat-vjqx
Автор

Nice tutorial! Would be really cool if you could zoom a bit into the code itself. It’s really tiny as of right now when watching it on my iPad lol

Rezmni
Автор

Thank you Brandon! Very helpful video! Can you please tell me if there are plans to port Samurado for macOS ?

dmtryrin
Автор

Is there a way to serialize references to a certain scriptable object? Probably not, right? because the scriptable object instance gets newly instanciated and any Id that would point to it would be gone? Only way to do it I can think of is register a scriptable object instance with some manager class and on load set the reference to that new instance, similar as with the Enemy GameObjects?
That is also the reason why you serialize the sceneID as string? (This looks pretty easy to break 😕)

fleity
Автор

Is there a chance to have the source code for the example?

BarcelonaMove