filmov
tv
EVERYTHING you need to know to SAVE and LOAD your game in Unity
Показать описание
--
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
Комментарии