RunOptionsAsync(DialogueOption[],CancellationToken)

Method in AsyncOptionsView

Summary

Called by a DialogueRunner to display a collection of options to the user.

public override async YarnTask<DialogueOption?> RunOptionsAsync(DialogueOption[] dialogueOptions, CancellationToken cancellationToken)

Parameters

Name
Description

The set of options that should be displayed to the user.

System.Threading.CancellationToken cancellationToken

A System.Threading.CancellationToken that becomes cancelled when the dialogue runner no longer needs this dialogue view to return an option.

Returns

A task that indicates which option was selected, or that this dialogue view did not select an option.

Last updated

Yarn Spinnerยฎ and Secret Labยฎ are trade marks of Secret Lab Pty. Ltd., and are used by Yarn Spinner Pty. Ltd. under license.