# OptionSet

Struct in [Yarn](https://docs.yarnspinner.dev/2.1/api/csharp/yarn)

Inherits from `System.ValueType`

## Summary

A set of [Option](https://docs.yarnspinner.dev/2.1/api/csharp/yarn/yarn.optionset/yarn.optionset.option) s, sent from the [Dialogue](https://docs.yarnspinner.dev/2.1/api/csharp/yarn/yarn.dialogue) to the game.

```csharp
public struct OptionSet
```

## Remarks

You do not create instances of this struct yourself. They are created by the [Dialogue](https://docs.yarnspinner.dev/2.1/api/csharp/yarn/yarn.dialogue) during program execution.

## Properties

| Name                                                                                              | Description                                                                                                                                      |
| ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------ |
| [Options](https://docs.yarnspinner.dev/2.1/api/csharp/yarn/yarn.optionset/yarn.optionset.options) | Gets the [Option](https://docs.yarnspinner.dev/2.1/api/csharp/yarn/yarn.optionset/yarn.optionset.option) s that should be presented to the user. |

## Structs

| Name                                                                                            | Description                            |
| ----------------------------------------------------------------------------------------------- | -------------------------------------- |
| [Option](https://docs.yarnspinner.dev/2.1/api/csharp/yarn/yarn.optionset/yarn.optionset.option) | An option to be presented to the user. |

## See Also

* [Dialogue.OptionsHandler](https://docs.yarnspinner.dev/2.1/api/csharp/yarn/yarn.dialogue/yarn.dialogue.optionshandler): Gets or sets the [OptionsHandler](https://docs.yarnspinner.dev/2.1/api/csharp/yarn/yarn.optionshandler) that is called when a set of options are ready to be shown to the user.
