Displays dialogue lines to the player, and sends user choices back to the dialogue system.
public class DialogueUI : DialogueUIBehaviour
The DialogueUI component works closely with the
DialogueRunner class. It receives
Commands from the
DialogueRunner, and conveys them to the rest of the game. It is
also responsible for relaying input from the user to the
DialogueRunner, such as option selection or the signal to proceed
to the next line.
|DialogueComplete()||Called by the
|DialogueStarted()||Signals that a conversation has started.|
|MarkLineComplete()||Signals that the user has finished with a line, or wishes to skip to the end of the current line.|
|RunCommand(Command, Action)||Called by the
|RunLine(Line, ILineLocalisationProvider, Action)||Called by the
|RunOptions(OptionSet, ILineLocalisationProvider, Action
||Called by the
|SelectOption(Int32)||Signals that the user has selected an option.|
|dialogueContainer||The object that contains the dialogue and the options.|
|optionButtons||The buttons that let the user choose an option.|
|textSpeed||How quickly to show the text, in seconds per character|
DialogueRunner: The DialogueRunner component acts as the interface between your game and Yarn Spinner.
Defined in Unity/Assets/YarnSpinner/Scripts/DialogueUI.cs, line 49.