Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/alee12131415/Dialog-Node-Editor

Node Based Dialog Editor for Unity
https://github.com/alee12131415/Dialog-Node-Editor

dialog dialog-editor unity unity-editor

Last synced: 2 months ago
JSON representation

Node Based Dialog Editor for Unity

Awesome Lists containing this project

README

        

# Dialog Node Editor
Basic usage of the extension.

Example: Assets/DNE/Example

![](./README/Canvas.png)

## Canvas
### Entry

![](./README/Entry.png)

### Nodes
Right click canvas to create nodes. Right click node to delete node

![](./README/Nodes.png)

Start Node
* Starting point for the dialog

End Node
* Purely for aesthetic
* Shows where/when a dialog ends

Dialog Node
* Creates dialog point
* Options determine which node to go to next

### Connections
Creates links between nodes. Nodes cannot be connected to itself and output cannot have multiple connections (inputs may have multiple connections)

![](./README/Connection.png)

Click on input or output point to start a connections. Connections will be magenta and will turn white once connected to another point. Click white box to delete connection

### Save/Load/Build
Save
* Creates EditorSaveObject as an asset file
* Used to rebuild canvas for later editing
* EditorSaveObject not used for production, only as a tool

Load
* Loads EditorSaveObject asset file

Build
* Creates BuildObject asset file
* BuildObject is used for production
* Cannot Load BuildObjects

## DNE.BuildObject
BuildObject is used to traverse the dialog. Dialog is traversed only one way.
### Get()
Returns Clone of the BuildObject class. Used if you do not want to edit the asset file.
### Next(string option)
returns next BuildNode in dialog.
returns null if BuildNode is not found or reaches the end
### GetCurrent()
Returns BuildNode class of the current dialog node
### Reset()
Resets class back to the entry dialog node

## DNE.BuildNode
Representation of the dialog node
### Title
Returns title of the node
### Clip
Returns AudioClip of the node
### Triggers
Returns List of options