RunOptionsAsync(DialogueOption[],CancellationToken)
Method in LinePresenter
Summary
Called by the DialogueRunner to signal that a set of options should be displayed to the user.
public override YarnTask<DialogueOption?> RunOptionsAsync(DialogueOption[] dialogueOptions, CancellationToken cancellationToken)
Remarks
This dialogue presenter does not handle any options.
Parameters
Name
Description
Yarn.Unity.DialogueOption[] dialogueOptions
The set of options that should be displayed to the user.
CancellationToken
cancellationToken
A System.Threading.CancellationToken
that becomes cancelled when the dialogue runner no longer needs this dialogue presenter to return an option.
Returns
A task that indicates which option was selected, or that this dialogue presenter did not select an option.
Last updated
Was this helpful?