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

Опубликовано: 11 Октябрь 2024
на канале: Sasquatch B Studios
4,708
269

Show your Support & Get Exclusive Benefits on Patreon (Including Access to this tutorial Source Files + Code) -   / sasquatchbgames  
Join our Discord Community! -   / discord  

--
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/ScriptRefere...

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=110...
---
Looking for some awesome Gamedev merch? - https://sasquatchbgames.myspreadshop....
---

Link to Download the FREE 2D Asset Pack:
https://veilofmaia.com/tutorial-asset...


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/23...

Follow us on Twitter for regular updates!
  / sasquatchbgames  

#unitytutorial #unity2d #unity3d