# OptionItem

Class in [Yarn.Unity](https://docs.yarnspinner.dev/3.1/api/csharp/yarn.unity)

Inherits from `UnityEngine.UI.Selectable`

## Summary

```csharp
public sealed class OptionItem : UnityEngine.UI.Selectable, ISubmitHandler, IPointerClickHandler, IPointerEnterHandler
```

## Fields

| Name                                                                                                                                    | Description |
| --------------------------------------------------------------------------------------------------------------------------------------- | ----------- |
| [completionToken](https://docs.yarnspinner.dev/3.1/api/csharp/yarn.unity/yarn.unity.optionitem/yarn.unity.optionitem.completiontoken)   |             |
| [OnOptionSelected](https://docs.yarnspinner.dev/3.1/api/csharp/yarn.unity/yarn.unity.optionitem/yarn.unity.optionitem.onoptionselected) |             |

## Methods

| Name                                                                                                                                                  | Description |
| ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------- |
| [InvokeOptionSelected()](https://docs.yarnspinner.dev/3.1/api/csharp/yarn.unity/yarn.unity.optionitem/yarn.unity.optionitem.invokeoptionselected)     |             |
| [OnDeselect(BaseEventData)](https://docs.yarnspinner.dev/3.1/api/csharp/yarn.unity/yarn.unity.optionitem/yarn.unity.optionitem.ondeselect)            |             |
| [OnPointerClick(PointerEventData)](https://docs.yarnspinner.dev/3.1/api/csharp/yarn.unity/yarn.unity.optionitem/yarn.unity.optionitem.onpointerclick) |             |
| [OnPointerEnter(PointerEventData)](https://docs.yarnspinner.dev/3.1/api/csharp/yarn.unity/yarn.unity.optionitem/yarn.unity.optionitem.onpointerenter) |             |
| [OnSelect(BaseEventData)](https://docs.yarnspinner.dev/3.1/api/csharp/yarn.unity/yarn.unity.optionitem/yarn.unity.optionitem.onselect)                |             |
| [OnSubmit(BaseEventData)](https://docs.yarnspinner.dev/3.1/api/csharp/yarn.unity/yarn.unity.optionitem/yarn.unity.optionitem.onsubmit)                |             |

## Properties

| Name                                                                                                                              | Description |
| --------------------------------------------------------------------------------------------------------------------------------- | ----------- |
| [IsHighlighted](https://docs.yarnspinner.dev/3.1/api/csharp/yarn.unity/yarn.unity.optionitem/yarn.unity.optionitem.ishighlighted) |             |
| [Option](https://docs.yarnspinner.dev/3.1/api/csharp/yarn.unity/yarn.unity.optionitem/yarn.unity.optionitem.option)               |             |
