Dialogue Tree


I wanted to experiment in making dialogue tree that has multiple choices and the choices to make affects the NPC your currently talking to. After doing research I ended up finding the experimental Unity Graph System. After doing my research I found out you needed to make some child classes from GraphView, Node, and EditorWindow from Unity. After researching and watching some helpful youtube videos online explaining Unity Graph System it reminded of a similar system of GUI programming for C++ as I somewhat dabble into that. This mean in your Editor Window you need to populate your graph by creating buttons similar to GUI system or even similar to MEL python in which you construct an existing class called button assign it’s attributes. Also whenever you click that button you assign the clickEvent to generate a node from your graph view class.

Test in action