Dialogue Graph Editor is a simple tool and dialogue system for Unity that allows you to:
- edit dialogue graphs visually
- display the dialogues at runtime
- create actors with several expressions
- easily move created assets around
To use the system in your project, download and import DialogueSystem.unitypackage.
The whole project also contains these dependencies, which are needed to display the dialogues at runtime:
- LeanTween (tested v2.50) (link)
- TextMeshPro (tested v3.0.1)
Tested in Unity 2020.2.3f1 and 2020.3.8f1.
- Runtime
- data - structures for dialogues, nodes, actors
- logic - controls the dialogues' flow
- view - displays dialogue in-game
- Editor
- Graph Editor - edit dialogue graphs
- Node Editor - edit sentences and responses
- Examples
- test scene with a sample dialogue
- basic adjustable UI setup
- other example assets
- create a Dialogue [RMB > Create > DialogueSystem > Dialogue]
- create an Actor [RMB > Create > DialogueSystem > Actor]
- open the Graph Editor tool [Tools > DialogueSystem > Graph Editor]
- open the Node Editor tool [Tools > DialogueSystem > Node Editor]
You can also open the editor tools by selecting a dialogue and clicking "Edit".
- LMB - select nodes, drag nodes, move the whole sheet around
- RMB - create connections (click on one node, then another)
- Scroll wheel / slider - zoom in and out
- green (+) button - add a a node
- red (-) button - remove the selected node
- reset (R) button - reset graph position and zoom
Open the example scene (DialogueSystem > Examples > Example Scene), run and press T
to start the dialogue.