Description
This class provides all your GraphCore features for makingConstructor
ParleyGraph(string, string, LanguageID?)
Boots a conversation. Looks up the graph asset, wires up the “NextDialogue” input action (falling back to left mouse click if the project hasn’t defined one), and advances to the entry node. If the graph can’t be found the instance ends itself immediately - safe to construct without a try/catch. DeclarationOptional language override. Defaults to the runner’s current language when null.
Fields
ConversationEnded
Flags whether the conversation has ended or not. DeclarationFlags
Flag register for all of the instance’s set flags. DeclarationMeta
Metadata for the current instance, holds a LanguageID and a TextDirection. DeclarationCurrentLanguage
Holds the value of FallbackLanguage. DeclarationProperties
OnNextDialogue
Fires when the player advances. Await or subscribe as you like. DeclarationCurrentNode
The node currently selected. Null once the conversation ends. DeclarationMethods
BindNextEvent(InputAction)
Rebinds the “advance” signal to a different input action. DeclarationUnBindNextEvent(InputAction)
Detaches the input handler. Called automatically on end. DeclarationGetNode(string)
Searches for and returns a node from a provided string or null if node nodes match. DeclarationGetCurrentChoices()
Returns the choices available on the current node, or an empty list if there aren’t any. DeclarationThe choices available on the current node. Empty if the current node is a plain dialogue line with no branching.
ProgressDialogue(string)
Advances the conversation. Pass"*" (the default) to follow the current node’s RuntimeDialogueNode.NextNodeID, or a specific node ID to jump there directly. No-ops on a Choice node — the player has to pick first.
Declaration
Target node for the transition. When
null or "*", falls back to CurrentNode.NextNode.