Cómo guardar y cargar datos en Unity (los pros y los contras de PlayerPrefs)
(•̀ᴗ•́) و ̑̑ You can play this game Demo On my Itch: https://beaverjoe.itch.io/save-load-demo
(•̀ᴗ•́) و ̑̑ Hello everyone Welcome to my channel.
In this week, I am going to make one short series about How to save and load games in Unity. I will introduce four methods to achieve: PlayerPrefs, Serialization, JSON and XML. In this episode, We are going to talk about the first one. PlayerPrefs is good at saving single variable. (If you want to save entire data from the game, PlayerPrefs is not what I recommend)
〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓
※Keyword※
Singleton Pattern, Caching System, PlayerPrefs.SetInt, PlayerPrefs.GetInt, PlayerPrefs.DeleteAll, Serialization, JSON, XML
〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓
★ Unity Blog about how to SAVE and LOAD by Anthony Uccello: https://www.raywenderlich.com/418-how...
★ Starting Project can download from my google drive: https://drive.google.com/file/d/1cUvn...
★ Completed Project can download from my google drive: https://drive.google.com/file/d/1B8oN...
★ Github (includes Scripts & Sprites & ScreenShots-Tips): https://github.com/zheyuanzhou
(•̀ᴗ•́) و ̑̑ Text Version of this tutorial: https://www.evernote.com/l/AhXAuzM8eX...
〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓
★ Timeline Of this tutorial ★
00:02 Introduction ※
01:36 Start ※
02:26 Create UI Toggle (music Switch) ※
03:46 Singleton Pattern ※
05:58 Display Coins and Diamonds ※
07:50 Add BGM Source ※
08:56 PlayerPrefs ※
11:36 Completed Step 1 ※
12:52 Save & Load Button ※
14:47 Save and Load Player’s Position
16:33 Cons and Pros of PlayerPrefs
17:15 Next Topic: Serialization (Binary)
〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓
★★★ Hopes SMASH likes and subs button. Very appreciate for your subscription. Next video We am going to talk about Serialization.
Have a nice Day/Night!
〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓