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

DialogueUI.optionButtons Field

The buttons that let the user choose an option.

public List<Button> optionButtons

Remarks

The Button objects in this list will be enabled and disabled by the DialogueUI. Each button should have as a child object a Text or a TMPro.TextMeshProUGUI as a label; the text of this child object will be updated by the DialogueUI as necessary.

You do not need to configure the On Click action of any of these buttons. The DialogueUI will configure them for you.

Source

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