filmov
tv
Data Persistence - Save & load your game state while avoiding common mistakes | Unity Tutorial
Показать описание
Learn how to save and load data in Unity - avoiding common mistakes and dangerous serialization techniques many other tutorials will tell you to use!
In this video we'll look at using text-based serialization using JSON and optionally encrypt that data. I also discuss some of the pros/cons for using text-based serialization, and what you should use instead if you really want to/need to use a binary serialization technique.
Common suggestions that you should absolutely not use to persist game state data are:
1. Player Prefs - these are not designed for storing game state. Only...Player Preferences such as graphic & audio settings.
📚 Resources 📚
❤ Believe in LlamAcademy's mission and have received value from the videos? Become a Patreon Supporter or YouTube Member:
🧡 Believe in LlamAcademy's mission and have received value from the videos? Here's how you can show your support:
📚 Take my Unity ShaderGraph Course:
Some links may be affiliate links, which at no additional cost to you, gives me a small portion of the purchase.
Chapters:
00:00 What you shouldn't do
01:45 What you should do
03:20 JSON Serialization
04:43 Sample Scene Overview
11:03 Demo Saving Data
14:23 Demo Loading Data
22:02 Encryption/Decryption Demo
23:05 Demo Encryption/Decryption Error Handling
23:47 Final Thoughts
In this video we'll look at using text-based serialization using JSON and optionally encrypt that data. I also discuss some of the pros/cons for using text-based serialization, and what you should use instead if you really want to/need to use a binary serialization technique.
Common suggestions that you should absolutely not use to persist game state data are:
1. Player Prefs - these are not designed for storing game state. Only...Player Preferences such as graphic & audio settings.
📚 Resources 📚
❤ Believe in LlamAcademy's mission and have received value from the videos? Become a Patreon Supporter or YouTube Member:
🧡 Believe in LlamAcademy's mission and have received value from the videos? Here's how you can show your support:
📚 Take my Unity ShaderGraph Course:
Some links may be affiliate links, which at no additional cost to you, gives me a small portion of the purchase.
Chapters:
00:00 What you shouldn't do
01:45 What you should do
03:20 JSON Serialization
04:43 Sample Scene Overview
11:03 Demo Saving Data
14:23 Demo Loading Data
22:02 Encryption/Decryption Demo
23:05 Demo Encryption/Decryption Error Handling
23:47 Final Thoughts
Комментарии