# Options List View

Options List View is a [Dialogue View](/2.3/using-yarnspinner-with-unity/components/dialogue-view.md) that presents a list of options in a list.

When this view receives options from the Dialogue Runner, it creates an instance of the [Option View](/2.3/using-yarnspinner-with-unity/components/dialogue-view/option-view.md) prefab you specify in the Option View Prefab property, and adds it as a child of the options list view.

{% hint style="info" %}
Options List View only displays options, and doesn't display lines. You can use an additional Dialogue View to handle these, like a [Line View](/2.3/using-yarnspinner-with-unity/components/dialogue-view/line-view.md) or a custom Dialogue View of your own.
{% endhint %}

### Inspector

| Property                 | Description                                                                                                                                                                                                        |
| ------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| Canvas Group             | The Canvas Group that the Options List View will control. The Canvas Group will be made active when the Options List View is displaying options, and inactive when not displaying options.                         |
| Option View Prefab       | A prefab containing an Option View. The Options List View will create an instance of this prefab for each option that needs to be displayed.                                                                       |
| Last Line Text           | A TextMeshPro Text object that will display the text of the last line that appeared before options appeared. If this is not set, or no line has run before options are shown, then this property will not be used. |
| Fade Time                | The time, in seconds, that the Options List View will take to fade in. If this is zero, the Options List View will appear immediately.                                                                             |
| Show Unavailable Options | If this is turned on, then any options whose line condition has failed will still appear to the user, but they won't be selectable. If this is off, then these options will not appear at all.                     |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.yarnspinner.dev/2.3/using-yarnspinner-with-unity/components/dialogue-view/options-list-view.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
