Class DialogueNode
Represents a node in a dialogue tree. Serialized inline on a DialogueTemplate asset. Contains speaker text, ECA conditions/actions, and branching choices.
[Serializable]
public class DialogueNode
- Inheritance
-
DialogueNode
- Inherited Members
Fields
Choices
List of choices available to the player at this node.
public List<DialogueChoice> Choices
Field Value
Conditions
Conditions that must be met for this node to be accessible. If any condition fails, the node is skipped or unavailable.
[SerializeReference]
public List<BaseCondition> Conditions
Field Value
EditorPosition
Editor-only position for the visual dialogue tree editor.
[HideInInspector]
public Vector2 EditorPosition
Field Value
- Vector2
NodeId
Unique identifier for this node within the dialogue tree.
public int NodeId
Field Value
NodeName
Editor-only display name for this node in the dialogue tree editor.
public string NodeName
Field Value
OnEnterActions
Actions executed when the player enters this node.
[SerializeReference]
public List<BaseAction> OnEnterActions
Field Value
OnExitActions
Actions executed when the player leaves this node.
[SerializeReference]
public List<BaseAction> OnExitActions
Field Value
SpeakerName
Optional speaker name override. If empty, the NPC's default name is used.
public string SpeakerName
Field Value
Text
The dialogue text displayed to the player at this node.
[TextArea(3, 8)]
public string Text