Загрузка...

Unity Dialogue System - Creating the Single Choice Node

In this video we'll be setting the base elements for our Single Choice Node, which is our "continue to the next dialogue" node type.

We won't be showing it yet but will be instantiating it later on in another video.

________________________________________________________

Timestamps:

00:00 Introduction
00:08 Creating the C# Script
00:56 Making the base node methods virtual
01:27 Overriding the virtual methods
01:48 Initializing the single choice node variables
02:37 Drawing the single choice node
03:50 Changing where the RefreshExpandedState method is called

________________________________________________________

Useful links:

● Final Code (GitHub): https://github.com/Wafflus/unity-dialogue-system
● Node (Unity Documentation): https://docs.unity3d.com/ScriptReference/Experimental.GraphView.Node.html
● Port (Unity Documentation): https://docs.unity3d.com/ScriptReference/Experimental.GraphView.Port.html
● RefreshExpandedState (Unity Documentation): https://docs.unity3d.com/ScriptReference/Experimental.GraphView.Node.RefreshExpandedState.html
● RefreshExpandedState (Unity Source Code): https://github.com/Unity-Technologies/UnityCsReference/blob/61f92bd79ae862c4465d35270f9d1d57befd1761/Modules/GraphViewEditor/Elements/Node.cs#L57
● Virtual Keyword (C# Documentation): https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/virtual
● Override Modifier (C# Documentation): https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/override
● Base Keyword (C# Documentation): https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/base
● Dialogue System (Playlist): https://www.youtube.com/watch?v=yBM112uokM8&list=PL0yxB6cCkoWK38XT4stSztcLueJ_kTx5f&index=2

________________________________________________________

● Subscribe: https://www.youtube.com/channel/UCeeZW9pXSyDqLLu7t5xX7ug?sub_confirmation=1

● Follow me on Twitter: https://twitter.com/IndieWafflus

________________________________________________________

Видео Unity Dialogue System - Creating the Single Choice Node канала Indie Wafflus
Яндекс.Метрика
Все заметки Новая заметка Страницу в заметки
Страницу в закладки Мои закладки
На информационно-развлекательном портале SALDA.WS применяются cookie-файлы. Нажимая кнопку Принять, вы подтверждаете свое согласие на их использование.
О CookiesНапомнить позжеПринять