Dialogue Graph
Main in-game dialogue handler class.
Dialogue is handled automatically by QT as long as everything is set up correctly.
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)
Alternative
You can get the DialogueGraph
from an existing DialogueObject
with the GetDialogueGraph
method.
Last updated