Dialogue.SetSelectedOption Method
Signals to the Dialogue
that the user has
selected a specified OptionSet.Option
.
public void SetSelectedOption(int selectedOptionID)
Remarks
After the Dialogue delivers an OptionSet
, this
method must be called before Continue()
is called.
The ID number that should be passed as the parameter to this
method should be the ID
field in
the OptionSet.Option
that represents the user’s
selection.
Parameters
Parameter | Description |
---|---|
Int32 selectedOptionID |
The ID number of the Option that the user selected. |
See Also
-
Dialogue.OptionsHandler
: Represents the method that is called when the Dialogue delivers anOptionSet
. -
OptionSet
: A set ofOptionSet.Option
s, sent from theDialogue
to the game. -
Continue()
: Starts, or continues, execution of the current Program.
Source
Defined in YarnSpinner/Dialogue.cs, line 619.