[Unity] 存檔系統 Part 2 | JSON | Unity初學者系列教程 | 數據存取 | 數據持久化 | 存檔讀檔 | Save&Load

Channel:
Subscribers:
1,930
Published on ● Video Link: https://www.youtube.com/watch?v=1vOuh3_ZXRQ



Category:
Tutorial
Duration: 33:46
1,567 views
40


在本影片中你將學到Unity引擎中三種常見的數據存儲方式中的第二種:JSON
主要內容:
1. 什麽是JSON
2. 了解Unity引擎的JsonUtility
3. 構建JSON存檔系統
4. JSON的優缺點和適用範圍
本影片是Unity存檔系統系列教程的第二部分。
––––––––––––––––––––––––––––––
教程GitHub倉庫 -
https://github.com/AtCloudStudio/SaveSystemTutorial
––––––––––––––––––––––––––––––
Unity 存檔系統 Part 1 - PlayerPrefs: https://youtu.be/tci13zedrzw
Unity 存檔系統 Part 2 - JSON: https://youtu.be/1vOuh3_ZXRQ
—————————————————————————
希望對大家的遊戲開發之路有所幫助 :)
💬有任何問題請在評論中留言,我會盡力回答。
––––––––––––––––––––––––––––––
你好啊!我是阿嚴,一個小小的獨立遊戲開發者與自由藝術家。
我每周都會更新獨立遊戲開發教程與日誌。
如果你覺得我的視頻還不錯,請幫我點贊並訂閱我的頻道,謝謝 :)
––––––––––––––––––––––––––––––
➤訂閱我的頻道 - https://www.youtube.com/channel/UCSRCf2y6LV8vpKSoXDoU2VQ?sub_confirmation=1
➤Discord Server - https://discord.gg/ZmTgSCe4Jq
➤Twitter - https://twitter.com/XuZuyan
➤ArtStation - https://www.artstation.com/xuzuyan
––––––––––––––––––––––––––––––
參考資料鏈接:
JSON - https://www.json.org/
JSON(中文) - https://www.json.org/json-zh.html
JSON Example - https://json.org/example.html

JsonUtility.ToJson - Unity Documentation - Scripting API -
https://docs.unity3d.com/ScriptReference/JsonUtility.ToJson.html
JsonUtility.FromJson - Unity Documentation - Scripting API -
https://docs.unity3d.com/ScriptReference/JsonUtility.FromJson.html
JsonUtility.FromJsonOverwrite - Unity Documentation - Scripting API -
https://docs.unity3d.com/ScriptReference/JsonUtility.FromJsonOverwrite.html

Script Serialization - Unity Documentation - Manual -
https://docs.unity3d.com/Manual/script-Serialization.html

Application.persistentDataPath - Unity Documentation - Scripting API -
https://docs.unity3d.com/ScriptReference/Application-persistentDataPath.html

Path.Combine - Microsoft .NET Docs -
https://docs.microsoft.com/en-us/dotnet/api/system.io.path.combine

File.WriteAllText - Microsoft .NET Docs -
https://docs.microsoft.com/en-us/dotnet/api/system.io.file.writealltext
File.ReadAllText - Microsoft .NET Docs -
https://docs.microsoft.com/en-us/dotnet/api/system.io.file.readalltext
File.Delete - Microsoft .NET Docs -
https://docs.microsoft.com/en-us/dotnet/api/system.io.file.delete

try-catch - Microsoft .NET Docs -
https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/try-catch
––––––––––––––––––––––––––––––
00:00 視頻簡介
01:15 什麽是JSON
02:34 JsonUtility
15:22 構建JSON存檔系統
29:41 JSON存檔系統的優缺點
30:59 JSON存檔系統的適用範圍
31:37 總結
32:16 尾聲
––––––––––––––––––––––––––––––
#unity
unity教程
unity中文教程
遊戲開發
獨立遊戲
獨立遊戲開發
#JSON
數據持久化
#存檔系統
存檔與讀檔
數據存取




Other Videos By RYanIndieDev


2022-03-15[Unity] 平臺遊戲控製器 教程 Ep.03 狀態切換
2022-03-10[Unity] 平臺遊戲控製器 教程 Ep.02 基礎狀態機
2022-02-02[Unity] 平臺遊戲控製器 教程 Ep.01 項目創建
2022-01-29[Unity] 平臺遊戲控製器 教程 Ep.00 教程簡介
2021-12-11[Unity] 橫版卷軸射擊遊戲 製作教程 Ep.28.2 物品掉落 | 隨機掉落 | 掉落幾率 | 獨立遊戲 | 遊戲開發 | 阿嚴
2021-12-10[Unity] 橫版卷軸射擊遊戲 製作教程 Ep.28.1 戰利品 | 物品掉落·第一部分 | 預製變體 | 自動旋轉 | 道具拾取 | 獨立遊戲 | 遊戲開發 | 阿嚴
2021-12-04[Unity] 橫版卷軸射擊遊戲製作教程 Ep.27.2 激光武器 | Boss戰·第二部分 | 如何製作Boss | 獨立遊戲 | 遊戲開發 | 阿嚴
2021-11-30[Unity] 橫版卷軸射擊遊戲製作教程 Ep.27.1 Boss戰·第一部分 | 如何製作Boss | 獨立遊戲 | 遊戲開發 | 阿嚴
2021-11-08[Unity 2021] 對象池API | 對象池模式 | Unity提高教程 | Object Pool
2021-11-02[Unity] 橫版卷軸射擊遊戲製作教程 Ep.26 高分排行榜| 高分系統 | 獨立遊戲 | 遊戲開發 | 阿嚴
2021-10-25[Unity] 存檔系統 Part 2 | JSON | Unity初學者系列教程 | 數據存取 | 數據持久化 | 存檔讀檔 | Save&Load
2021-10-18[Unity] 存檔系統 Part 1 | PlayerPrefs | 初學者系列教程 | 數據持久化 | 數據存取 | 存檔讀檔
2021-10-11[Unity橫版卷軸射擊遊戲製作教程] Ep.25.3 計分畫面 | 遊戲循環 Part.3 | 中文教程 | 阿嚴獨立遊戲開發
2021-10-07[Unity橫版卷軸射擊遊戲製作教程] Ep.25.2 遊戲結束畫面 | 遊戲循環 Part.2 | 中文教程 | 阿嚴獨立遊戲開發
2021-10-04[Unity橫版卷軸射擊遊戲製作教程] Ep.25.1 主菜單 | 遊戲循環 Part.1 | 中文教程 | 阿嚴獨立遊戲開發
2021-10-02[Unity] 關於嵌套式畫布你所需要知道的一切 | Unity初學者系列 | 時鐘UI | UGUI | Nested Canvases
2021-09-18[Unity橫版卷軸射擊遊戲製作教程] Ep.24.3 技能冷卻 | 導彈系統 Part.3 | 中文教程 | 阿嚴獨立遊戲開發
2021-09-16[Unity橫版卷軸射擊遊戲製作教程] Ep.24.2 範圍傷害 | AOE | 導彈系統Part.2 | 中文教程 | 阿嚴獨立遊戲開發
2021-09-11[Unity] 如何在遊戲運行時檢測輸入設備的切換 | 輸入系統 | Input System | 輸入設備檢測器
2021-09-11[Unity橫版卷軸射擊遊戲製作教程] Ep.24.1 發射導彈 | 導彈系統Part.1 | 中文教程 | 阿嚴獨立遊戲開發
2021-09-04[Unity橫版卷軸射擊遊戲製作教程] Ep.23.7 遊戲狀態 | 遊戲管理器 | UGUI | 中文教程 | 阿嚴獨立遊戲開發



Tags:
unity tutorial
indie game
Unity教程
unity 中文
Unity獨立遊戲開發
遊戲開發
Unity自製遊戲
獨立遊戲開發
Unity編程
Unity C#
unity c# tutorial
indie dev
game development
Unity game
unity中文教程
game dev
unity教學
unity 遊戲製作教學
unity遊戲製作
unity 遊戲開發
unity存檔系統
unity save system
unity save and load
unity 存檔
unity 讀檔
unity save game
unity load game
unity 數據存取
JSON
Unity JSON
JSON 存檔系統
JSON Save System
JSON Data Persistence
JSON Data Persistent
數據持久化
JSON 數據持久化