Dialogue Graph
Main in-game dialogue handler class.
The DialogueGraph class is what handles most of the dialogue node logic, allowing the dialogue you edited through the Editor Window to be displayed correctly in-game.
A lot of the dialogue logic is handled in the DefaultDialogueWindow
class as well for customized dialogue display functionality.
A dialogue graph is usually stored in a DialogueObject
, but it can be stored anywhere you'd like. Dialogue graphs are serializable and can be saved in a file when converted to a JSON object.
Getting the Dialogue Graph
Main Method (Quest Dialogue Only)
var graph = QT.GetDialogueGraph("quest key");
Alternative
You can get the DialogueGraph
from an existing DialogueObject
with the GetDialogueGraph
method.
// Get the dialogue object
var dialogue = QT.GetQuestDialogue("quest key");
// Get the dialogue graph
var graph = dialogue.GetDialogueGraph();
Last updated