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




Show your Support & Get Exclusive Benefits on Patreon (Including Access to this tutorial Source Files + Code) – https://www.patreon.com/sasquatchbgames
Join our Discord Community! – https://discord.com/invite/aHjTSBz3jH


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:
https://docs.unity3d.com/ScriptReference/Application-persistentDataPath.html

In need of more Unity Assets? Using our affiliate link is a great way to support us. We get a small cut that helps keep us up and running: https://assetstore.unity.com/?aid=1100lwgBQ

Looking for some awesome Gamedev merch? – https://sasquatchbgames.myspreadshop.com/

Link to Download the FREE 2D Asset Pack:
https://veilofmaia.com/tutorial-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!
https://store.steampowered.com/app/2343270/Samurado/

Follow us on Twitter for regular updates!

#unitytutorial #unity2d #unity3d

Voir sur youtube

KA2Studio
Logo
Compare items
  • Total (0)
Compare
0