> For the complete documentation index, see [llms.txt](https://docs.yarnspinner.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.yarnspinner.dev/api/csharp/yarn/yarn.dialogue/yarn.dialogue.optionshandler.md).

# OptionsHandler

Property in [Dialogue](/api/csharp/yarn/yarn.dialogue.md)

## Summary

Gets or sets the [OptionsHandler](/api/csharp/yarn/yarn.optionshandler.md) that is called when a set of options are ready to be shown to the user.

```csharp
public OptionsHandler? OptionsHandler { get; set; }
```

## Remarks

The Options Handler delivers an [OptionSet](/api/csharp/yarn/yarn.optionset.md) to the game. Before [Continue()](/api/csharp/yarn/yarn.dialogue/yarn.dialogue.continue.md) can be called to resume execution, [SetSelectedOption(int)](/api/csharp/yarn/yarn.dialogue/yarn.dialogue.setselectedoption.md) must be called to indicate which [Option](/api/csharp/yarn/yarn.optionset/yarn.optionset.option.md) was selected by the user. If [SetSelectedOption(int)](/api/csharp/yarn/yarn.dialogue/yarn.dialogue.setselectedoption.md) is not called, an exception is thrown.
