This site is for Yarn Spinner v1, and won't be updated. Go to the current site.

DialogueUI.RunOptions Method

Called by the DialogueRunner to signal that a set of options should be displayed to the user.

public override void RunOptions(OptionSet optionSet, ILineLocalisationProvider localisationProvider, Action<int> onOptionSelected)

Remarks

When this method is called, the DialogueRunner will pause execution until the onOptionSelected method is called.

Parameters

Parameter Description
OptionSet optionSet The set of options that should be displayed to the user.
ILineLocalisationProvider localisationProvider The object that should be used to get the localised text of each of the options.
Int32} onOptionSelected A method that should be called when the user has made a selection.

Source

Defined in Unity/Assets/YarnSpinner/Scripts/DialogueUI.cs, line 330.