> 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/2.0/api/csharp/yarn.unity.md).

# Yarn.Unity Namespace

## Summary

Contains classes for working with Yarn Spinner in the Unity game engine.

## Classes

| Name                                                                                              | Description                                                                                                                                                                                                                                                                                                                                                                      |
| ------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [AssemblyExtensions](/2.0/api/csharp/yarn.unity/yarn.unity.assemblyextensions.md)                 |                                                                                                                                                                                                                                                                                                                                                                                  |
| [AudioLineProvider](/2.0/api/csharp/yarn.unity/yarn.unity.audiolineprovider.md)                   |                                                                                                                                                                                                                                                                                                                                                                                  |
| [AudioLocalizedLine](/2.0/api/csharp/yarn.unity/yarn.unity.audiolocalizedline.md)                 |                                                                                                                                                                                                                                                                                                                                                                                  |
| [CharacterColorView](/2.0/api/csharp/yarn.unity/yarn.unity.charactercolorview.md)                 |                                                                                                                                                                                                                                                                                                                                                                                  |
| [Cultures](/2.0/api/csharp/yarn.unity/yarn.unity.cultures.md)                                     | Provides access to all [Culture](/2.0/api/csharp/yarn.unity/yarn.unity.culture.md) s supported by Yarn Spinner.                                                                                                                                                                                                                                                                  |
| [DialogueCharacterNameView](/2.0/api/csharp/yarn.unity/yarn.unity.dialoguecharacternameview.md)   | A subclass of [DialogueViewBase](/2.0/api/csharp/yarn.unity/yarn.unity.dialogueviewbase.md) that displays character names.                                                                                                                                                                                                                                                       |
| [DialogueOption](/2.0/api/csharp/yarn.unity/yarn.unity.dialogueoption.md)                         |                                                                                                                                                                                                                                                                                                                                                                                  |
| [DialogueRunner](/2.0/api/csharp/yarn.unity/yarn.unity.dialoguerunner.md)                         | The DialogueRunner component acts as the interface between your game and Yarn Spinner.                                                                                                                                                                                                                                                                                           |
| [DialogueViewBase](/2.0/api/csharp/yarn.unity/yarn.unity.dialogueviewbase.md)                     | A `MonoBehaviour` that can present the data of a dialogue executed by a [DialogueRunner](/2.0/api/csharp/yarn.unity/yarn.unity.dialoguerunner.md) to the user. The [DialogueRunner](/2.0/api/csharp/yarn.unity/yarn.unity.dialoguerunner.md) uses subclasses of this type to relay information to and from the user, and to pause and resume the execution of the `YarnScript` . |
| [Effects](/2.0/api/csharp/yarn.unity/yarn.unity.effects.md)                                       |                                                                                                                                                                                                                                                                                                                                                                                  |
| [FindVoiceOver](/2.0/api/csharp/yarn.unity/yarn.unity.findvoiceover.md)                           | Provides methods for finding voice over `AudioClip` s in the project matching a Yarn linetag/string ID and a language ID.                                                                                                                                                                                                                                                        |
| [InMemoryVariableStorage](/2.0/api/csharp/yarn.unity/yarn.unity.inmemoryvariablestorage.md)       | A simple implementation of VariableStorageBehaviour.                                                                                                                                                                                                                                                                                                                             |
| [InterruptionFlag](/2.0/api/csharp/yarn.unity/yarn.unity.interruptionflag.md)                     |                                                                                                                                                                                                                                                                                                                                                                                  |
| [LanguageAttribute](/2.0/api/csharp/yarn.unity/yarn.unity.languageattribute.md)                   |                                                                                                                                                                                                                                                                                                                                                                                  |
| [LineProviderBehaviour](/2.0/api/csharp/yarn.unity/yarn.unity.lineproviderbehaviour.md)           | A `MonoBehaviour` that produces [LocalizedLine](/2.0/api/csharp/yarn.unity/yarn.unity.localizedline.md) s.                                                                                                                                                                                                                                                                       |
| [LineView](/2.0/api/csharp/yarn.unity/yarn.unity.lineview.md)                                     |                                                                                                                                                                                                                                                                                                                                                                                  |
| [Localization](/2.0/api/csharp/yarn.unity/yarn.unity.localization.md)                             |                                                                                                                                                                                                                                                                                                                                                                                  |
| [LocalizedLine](/2.0/api/csharp/yarn.unity/yarn.unity.localizedline.md)                           | Represents a line, ready to be presented to the user in the localisation they have specified.                                                                                                                                                                                                                                                                                    |
| [OptionsListView](/2.0/api/csharp/yarn.unity/yarn.unity.optionslistview.md)                       |                                                                                                                                                                                                                                                                                                                                                                                  |
| [OptionView](/2.0/api/csharp/yarn.unity/yarn.unity.optionview.md)                                 |                                                                                                                                                                                                                                                                                                                                                                                  |
| [SampleRenderDetector](/2.0/api/csharp/yarn.unity/yarn.unity.samplerenderdetector.md)             | Detects if the render pipeline is different from the one the samples were created with, and warn you that things might look odd.                                                                                                                                                                                                                                                 |
| [SerializedDictionary](/2.0/api/csharp/yarn.unity/yarn.unity.serializeddictionary.md)             | An `IDictionary<TKey,TValue>` that can be serialized as part of a Unity object.                                                                                                                                                                                                                                                                                                  |
| [TextLineProvider](/2.0/api/csharp/yarn.unity/yarn.unity.textlineprovider.md)                     |                                                                                                                                                                                                                                                                                                                                                                                  |
| [VariableStorageBehaviour](/2.0/api/csharp/yarn.unity/yarn.unity.variablestoragebehaviour.md)     | A `MonoBehaviour` that a [DialogueRunner](/2.0/api/csharp/yarn.unity/yarn.unity.dialoguerunner.md) uses to store and retrieve variables.                                                                                                                                                                                                                                         |
| [VoiceOverPlaybackUnity](/2.0/api/csharp/yarn.unity/yarn.unity.voiceoverplaybackunity.md)         | Handles playback of voice over `AudioClip` s referenced on `YarnScript` s.                                                                                                                                                                                                                                                                                                       |
| [YarnActionAttribute](/2.0/api/csharp/yarn.unity/yarn.unity.yarnactionattribute.md)               |                                                                                                                                                                                                                                                                                                                                                                                  |
| [YarnCommandAttribute](/2.0/api/csharp/yarn.unity/yarn.unity.yarncommandattribute.md)             | An attribute that marks a method on an object as a command.                                                                                                                                                                                                                                                                                                                      |
| [YarnFunctionAttribute](/2.0/api/csharp/yarn.unity/yarn.unity.yarnfunctionattribute.md)           | Marks the method as a function to be registered with the running instance's library.                                                                                                                                                                                                                                                                                             |
| [YarnLinesAsCanvasText](/2.0/api/csharp/yarn.unity/yarn.unity.yarnlinesascanvastext.md)           | Shows Yarn lines on Canvas Text components.                                                                                                                                                                                                                                                                                                                                      |
| [YarnParameterAttribute](/2.0/api/csharp/yarn.unity/yarn.unity.yarnparameterattribute.md)         | Yarn parameter.                                                                                                                                                                                                                                                                                                                                                                  |
| [YarnProject](/2.0/api/csharp/yarn.unity/yarn.unity.yarnproject.md)                               |                                                                                                                                                                                                                                                                                                                                                                                  |
| [YarnStateInjectorAttribute](/2.0/api/csharp/yarn.unity/yarn.unity.yarnstateinjectorattribute.md) | Inject state for any commands in this class using this static method.                                                                                                                                                                                                                                                                                                            |

## Enums

| Name                                                                                                          | Description                                                                                            |
| ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------ |
| [LineStatus](https://github.com/YarnSpinnerTool/YSDocs/blob/versions/2.0/api/csharp/yarn.unity.linestatus.md) | The presentation status of a [LocalizedLine](/2.0/api/csharp/yarn.unity/yarn.unity.localizedline.md) . |

## Structs

| Name                                                                          | Description                         |
| ----------------------------------------------------------------------------- | ----------------------------------- |
| [Culture](/2.0/api/csharp/yarn.unity/yarn.unity.culture.md)                   | Holds information about a language. |
| [StringTableEntry](/2.0/api/csharp/yarn.unity/yarn.unity.stringtableentry.md) |                                     |
