DialogueViewBase
Class in Yarn.Unity
Inherits from MonoBehaviour
Summary
A MonoBehaviour
that can present the data of a dialogue executed by a DialogueRunner to the user. The DialogueRunner uses subclasses of this type to relay information to and from the user, and to pause and resume the execution of the YarnScript
.
Remarks
The term "view" is meant in the broadest sense, e.g. a view on the dialogue (MVVM pattern). Therefore, this abstract class only defines how a specific view on the dialogue should communicate with the DialogueRunner (e.g. display text or trigger a voice over clip). How to present the content to the user will be the responsibility of all classes inheriting from this class.
The inheriting classes will receive a LocalizedLine and can be in one of the stages defined in DialogueLineStatus
while presenting it.
Methods
Signals that a conversation has started.
Called by the DialogueRunner to indicate that the line that this view is delivering has changed state.
Signals that the user wants to go to the next line.
See Also
DialogueRunner.dialogueViews: The View classes that will present the dialogue to the user.
DialogueUI
Last updated