> 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.unity/yarn.unity.linepresenter.md).

# LinePresenter

Class in [Yarn.Unity](/api/csharp/yarn.unity.md)

Inherits from [`DialoguePresenterBase`](/api/csharp/yarn.unity/yarn.unity.dialoguepresenterbase.md)

## Summary

A Dialogue Presenter that presents lines of dialogue, using Unity UI elements.

```csharp
public sealed class LinePresenter : DialoguePresenterBase
```

## Fields

| Name                                                                                                                           | Description                                                                                                                                                                           |
| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [autoAdvance](/api/csharp/yarn.unity/yarn.unity.linepresenter/yarn.unity.linepresenter.autoadvance.md)                         | Controls whether this Line View will automatically to the Dialogue Runner that the line is complete as soon as the line has finished appearing.                                       |
| [autoAdvanceDelay](/api/csharp/yarn.unity/yarn.unity.linepresenter/yarn.unity.linepresenter.autoadvancedelay.md)               | The amount of time after the line finishes appearing before automatically ending the line, in seconds.                                                                                |
| [canvasGroup](/api/csharp/yarn.unity/yarn.unity.linepresenter/yarn.unity.linepresenter.canvasgroup.md)                         | The canvas group that contains the UI elements used by this Line View.                                                                                                                |
| [characterNameContainer](/api/csharp/yarn.unity/yarn.unity.linepresenter/yarn.unity.linepresenter.characternamecontainer.md)   | The game object that holds the [characterNameText](/api/csharp/yarn.unity/yarn.unity.linepresenter/yarn.unity.linepresenter.characternametext.md) text field.                         |
| [characterNameText](/api/csharp/yarn.unity/yarn.unity.linepresenter/yarn.unity.linepresenter.characternametext.md)             | The `TMPro.TMP_Text` object that displays the character names found in dialogue lines.                                                                                                |
| [customTypewriter](/api/csharp/yarn.unity/yarn.unity.linepresenter/yarn.unity.linepresenter.customtypewriter.md)               |                                                                                                                                                                                       |
| [fadeDownDuration](/api/csharp/yarn.unity/yarn.unity.linepresenter/yarn.unity.linepresenter.fadedownduration.md)               | The time that the fade effect will take to fade lines out.                                                                                                                            |
| [fadeUpDuration](/api/csharp/yarn.unity/yarn.unity.linepresenter/yarn.unity.linepresenter.fadeupduration.md)                   | The time that the fade effect will take to fade lines in.                                                                                                                             |
| [lettersPerSecond](/api/csharp/yarn.unity/yarn.unity.linepresenter/yarn.unity.linepresenter.letterspersecond.md)               | The number of characters per second that should appear during a typewriter effect.                                                                                                    |
| [lineText](/api/csharp/yarn.unity/yarn.unity.linepresenter/yarn.unity.linepresenter.linetext.md)                               | The `TMPro.TMP_Text` object that displays the text of dialogue lines.                                                                                                                 |
| [showCharacterNameInLine](/api/csharp/yarn.unity/yarn.unity.linepresenter/yarn.unity.linepresenter.showcharacternameinline.md) | Controls whether the [lineText](/api/csharp/yarn.unity/yarn.unity.linepresenter/yarn.unity.linepresenter.linetext.md) object will show the character name present in the line or not. |
| [useFadeEffect](/api/csharp/yarn.unity/yarn.unity.linepresenter/yarn.unity.linepresenter.usefadeeffect.md)                     | Controls whether the line view should fade in when lines appear, and fade out when lines disappear.                                                                                   |
| [wordsPerSecond](/api/csharp/yarn.unity/yarn.unity.linepresenter/yarn.unity.linepresenter.wordspersecond.md)                   |                                                                                                                                                                                       |

## Methods

| Name                                                                                                                                          | Description                                                                                                                                                     |
| --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [OnDialogueCompleteAsync()](/api/csharp/yarn.unity/yarn.unity.linepresenter/yarn.unity.linepresenter.ondialoguecompleteasync.md)              | Called by the [DialogueRunner](/api/csharp/yarn.unity/yarn.unity.dialoguerunner.md) to signal that the dialogue has ended, and no more lines will be delivered. |
| [OnDialogueStartedAsync()](/api/csharp/yarn.unity/yarn.unity.linepresenter/yarn.unity.linepresenter.ondialoguestartedasync.md)                | Called by the [DialogueRunner](/api/csharp/yarn.unity/yarn.unity.dialoguerunner.md) to signal that dialogue has started.                                        |
| [RunLineAsync(LocalizedLine,LineCancellationToken)](/api/csharp/yarn.unity/yarn.unity.linepresenter/yarn.unity.linepresenter.runlineasync.md) | Presents a line using the configured text view.                                                                                                                 |
