OptionsPresenter

Class in Yarn.Unity

Inherits from DialoguePresenterBase

Summary

Receives options from a DialogueRunner , and displays and manages a collection of OptionItem views for the user to choose from.

public sealed class OptionsPresenter : DialoguePresenterBase

Fields

NameDescription
fadeDownDuration
fadeUpDuration
showUnavailableOptionsControls whether or not to display options whose IsAvailable value is false .
useFadeEffect

Methods

NameDescription
OnDialogueCompleteAsync()Called by a DialogueRunner to dismiss the options view when dialogue is complete.
OnDialogueStartedAsync()Called by a DialogueRunner to set up the options view when dialogue begins.
RunLineAsync(LocalizedLine,LineCancellationToken)Called by a DialogueRunner when a line needs to be presented, and stores the line as the ‘last seen line’ so that it can be shown when options appear.
RunOptionsAsync(DialogueOption[],LineCancellationToken)Called by a DialogueRunner to display a collection of options to the user.