- Популярные видео
- Авто
- Видео-блоги
- ДТП, аварии
- Для маленьких
- Еда, напитки
- Животные
- Закон и право
- Знаменитости
- Игры
- Искусство
- Комедии
- Красота, мода
- Кулинария, рецепты
- Люди
- Мото
- Музыка
- Мультфильмы
- Наука, технологии
- Новости
- Образование
- Политика
- Праздники
- Приколы
- Природа
- Происшествия
- Путешествия
- Развлечения
- Ржач
- Семья
- Сериалы
- Спорт
- Стиль жизни
- ТВ передачи
- Танцы
- Технологии
- Товары
- Ужасы
- Фильмы
- Шоу-бизнес
- Юмор
Unity Dialogue System - Saving the Graph
In this video we're going to be saving our Graph Data as well as our Dialogues Data into their respective Scriptable Objects.
One will be used to to load and save the Graph (Graph Data) and the other one will be used to show dialogues in-game as well as make our custom inspector in the future (Dialogues Data).
________________________________________________________
Timestamps:
00:00 Introduction
00:14 Structure
02:48 Creating the "DSIOUtility" Script
03:10 Updating the "DSIOUtility" Script
03:24 Creating the "Save" Method
03:43 Creating the "CreateStaticFolders" Method
04:23 Creating the Graphs (Editor Part) Folder
06:27 Creating the "CreateFolder" Method
06:57 Updating the "CreateFolder" Method
07:48 Creating the Dialogues (Runtime Part) Folders
08:40 Creating the "Initialize" Method
09:03 Creating the "graphFileName" Variable
09:22 Creating the "containerFolderPath" Variable
10:14 Creating the Runtime Graph Folders
11:26 Creating the "GetElementsFromGraphView" Method
11:57 Referencing the Graph View
12:33 Looping through the "graphElements" Variable
13:04 Creating the "nodes" and "groups" Lists
13:39 Adding the graph elements to their corresponding Lists
14:52 Creating the "CreateAsset" Method
15:28 Updating the "CreateAsset" Method
20:05 Creating the Graph Data (Editor Part) Asset
21:33 Creating the Dialogue Container (Runtime Part) Asset
22:09 Creating the "SaveGroups" Method
22:38 Iterating through the "groups" List
22:55 Creating the "SaveGroupToGraph" Method
23:08 Updating the "SaveGroupToGraph" Method
23:54 Creating the "SaveGroupToScriptableObject" Method
24:20 Updating the "SaveGroupToScriptableObject" Method
26:15 How do we save the Asset files correctly?
27:14 Creating the "SaveAsset" Method
27:34 Updating the "SaveAsset" Method
28:45 Creating the "SaveNodes" Method
29:17 Iterating through the "nodes" List
29:28 Creating the "SaveNodeToGraph" Method
29:41 Updating the "SaveNodeToGraph" Method
30:47 First Problem: Null Group ID Access
31:20 Second Problem: Choices List Reference
33:32 Third Problem: Node Text Callback
34:12 Another Problem: Node Choice Text Callback
34:49 Creating the "SaveNodeToScriptableObject" Method
35:11 Updating the "SaveNodeToScriptableObject" Method
36:38 Creating the "createdDialogueGroups" Dictionary
37:18 Adding the created Dialogue Group to the Dictionary
37:38 Passing in the variables to the Dialogue Container Dialogue Groups "Add" Method
38:45 Creating the "CollectionUtility" Script
38:55 Updating the "CollectionUtility" Script
40:59 Continuing the "SaveNodeToScriptableObject" Method
43:07 Creating the "ConvertNodeChoicesToDialogueChoices" Method
43:26 Updating the "ConvertNodeChoicesToDialogueChoices" Method
44:27 Creating the "IsStartingNode" Method
44:46 Updating the "IsStartingNode" Method
46:09 Finishing the "SaveNodeToScriptableObject" Method
46:26 Creating the "UpdateDialoguesChoicesConnection" Method
47:07 Updating the "UpdateDialoguesChoicesConnections" Method
48:53 Creating the "createdDialogues" Dictionary
49:19 Adding the created Dialogues to the Dictionary
49:37 Finishing the "UpdateDialoguesChoicesConnection" Method
51:28 Creating the "UpdateOldGroups" Method
51:53 Updating the "UpdateOldGroups" Method
54:22 Creating the "RemoveFolder" Method
55:02 Updating the "RemoveFolder" Method
55:55 Finishing the "UpdateOldGroups" Method
56:29 Creating the "UpdateOldUngroupedNodes" Method
57:13 Updating the "UpdateOldUngroupedNodes" Method
58:04 Creating the "RemoveAsset" Method
58:36 Updating the "RemoveAsset" Method
58:58 Finishing the "UpdateOldUngroupedNodes" Method
59:15 Creating the "UpdateOldGroupedNodes" Method
01:00:33 Updating the "UpdateOldGroupedNodes" Method
01:03:27 Calling the "Save" Method
01:04:49 Display Dialog on Empty Graph Name
01:05:53 Disable Save Button on Empty Element Names
01:08:15 End
________________________________________________________
Useful links:
● Final Code (GitHub): https://github.com/Wafflus/unity-dialogue-system
● Pastebin: https://pastebin.com/UF1WX4Ug
Due to there existing a limit of characters in the description and the Timestamps taking a lot of those characters (due to the video being this long), I've added the links in a pastebin file.
________________________________________________________
● Subscribe: https://www.youtube.com/channel/UCeeZW9pXSyDqLLu7t5xX7ug?sub_confirmation=1
● Follow me on Twitter: https://twitter.com/IndieWafflus
________________________________________________________
Видео Unity Dialogue System - Saving the Graph канала Indie Wafflus
One will be used to to load and save the Graph (Graph Data) and the other one will be used to show dialogues in-game as well as make our custom inspector in the future (Dialogues Data).
________________________________________________________
Timestamps:
00:00 Introduction
00:14 Structure
02:48 Creating the "DSIOUtility" Script
03:10 Updating the "DSIOUtility" Script
03:24 Creating the "Save" Method
03:43 Creating the "CreateStaticFolders" Method
04:23 Creating the Graphs (Editor Part) Folder
06:27 Creating the "CreateFolder" Method
06:57 Updating the "CreateFolder" Method
07:48 Creating the Dialogues (Runtime Part) Folders
08:40 Creating the "Initialize" Method
09:03 Creating the "graphFileName" Variable
09:22 Creating the "containerFolderPath" Variable
10:14 Creating the Runtime Graph Folders
11:26 Creating the "GetElementsFromGraphView" Method
11:57 Referencing the Graph View
12:33 Looping through the "graphElements" Variable
13:04 Creating the "nodes" and "groups" Lists
13:39 Adding the graph elements to their corresponding Lists
14:52 Creating the "CreateAsset" Method
15:28 Updating the "CreateAsset" Method
20:05 Creating the Graph Data (Editor Part) Asset
21:33 Creating the Dialogue Container (Runtime Part) Asset
22:09 Creating the "SaveGroups" Method
22:38 Iterating through the "groups" List
22:55 Creating the "SaveGroupToGraph" Method
23:08 Updating the "SaveGroupToGraph" Method
23:54 Creating the "SaveGroupToScriptableObject" Method
24:20 Updating the "SaveGroupToScriptableObject" Method
26:15 How do we save the Asset files correctly?
27:14 Creating the "SaveAsset" Method
27:34 Updating the "SaveAsset" Method
28:45 Creating the "SaveNodes" Method
29:17 Iterating through the "nodes" List
29:28 Creating the "SaveNodeToGraph" Method
29:41 Updating the "SaveNodeToGraph" Method
30:47 First Problem: Null Group ID Access
31:20 Second Problem: Choices List Reference
33:32 Third Problem: Node Text Callback
34:12 Another Problem: Node Choice Text Callback
34:49 Creating the "SaveNodeToScriptableObject" Method
35:11 Updating the "SaveNodeToScriptableObject" Method
36:38 Creating the "createdDialogueGroups" Dictionary
37:18 Adding the created Dialogue Group to the Dictionary
37:38 Passing in the variables to the Dialogue Container Dialogue Groups "Add" Method
38:45 Creating the "CollectionUtility" Script
38:55 Updating the "CollectionUtility" Script
40:59 Continuing the "SaveNodeToScriptableObject" Method
43:07 Creating the "ConvertNodeChoicesToDialogueChoices" Method
43:26 Updating the "ConvertNodeChoicesToDialogueChoices" Method
44:27 Creating the "IsStartingNode" Method
44:46 Updating the "IsStartingNode" Method
46:09 Finishing the "SaveNodeToScriptableObject" Method
46:26 Creating the "UpdateDialoguesChoicesConnection" Method
47:07 Updating the "UpdateDialoguesChoicesConnections" Method
48:53 Creating the "createdDialogues" Dictionary
49:19 Adding the created Dialogues to the Dictionary
49:37 Finishing the "UpdateDialoguesChoicesConnection" Method
51:28 Creating the "UpdateOldGroups" Method
51:53 Updating the "UpdateOldGroups" Method
54:22 Creating the "RemoveFolder" Method
55:02 Updating the "RemoveFolder" Method
55:55 Finishing the "UpdateOldGroups" Method
56:29 Creating the "UpdateOldUngroupedNodes" Method
57:13 Updating the "UpdateOldUngroupedNodes" Method
58:04 Creating the "RemoveAsset" Method
58:36 Updating the "RemoveAsset" Method
58:58 Finishing the "UpdateOldUngroupedNodes" Method
59:15 Creating the "UpdateOldGroupedNodes" Method
01:00:33 Updating the "UpdateOldGroupedNodes" Method
01:03:27 Calling the "Save" Method
01:04:49 Display Dialog on Empty Graph Name
01:05:53 Disable Save Button on Empty Element Names
01:08:15 End
________________________________________________________
Useful links:
● Final Code (GitHub): https://github.com/Wafflus/unity-dialogue-system
● Pastebin: https://pastebin.com/UF1WX4Ug
Due to there existing a limit of characters in the description and the Timestamps taking a lot of those characters (due to the video being this long), I've added the links in a pastebin file.
________________________________________________________
● Subscribe: https://www.youtube.com/channel/UCeeZW9pXSyDqLLu7t5xX7ug?sub_confirmation=1
● Follow me on Twitter: https://twitter.com/IndieWafflus
________________________________________________________
Видео Unity Dialogue System - Saving the Graph канала Indie Wafflus
Unity Dialogue System Unity Dialog System Unity Graph View Unity Node Unity UI Toolkit Unity Dialogues Unity Node Based Dialogue System Dialogue System Node Based Dialogue System Unity Dialogs Unity Visual Elements Node System Dialogue System Tutorial Unity 2D Unity Unity Tutorial Unity Dialogue System Tutorial Unity 3D Unity3D Unity2D Unity Saving Unity Dialogue Saving
Комментарии отсутствуют
Информация о видео
28 сентября 2021 г. 23:13:15
01:10:00
Другие видео канала





















