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

DialogueUI.SelectOption Method

Signals that the user has selected an option.

public void SelectOption(int optionID)

Remarks

This method is called by the Buttons in the optionButtons list when clicked.

If you prefer, you can also call this method directly.

Parameters

Parameter Description
Int32 optionID The ID of the OptionSet.Option that was selected.

Source

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