# DismissLine(Action)

Method in [DialogueViewBase](https://docs.yarnspinner.dev/2.1/api/csharp/yarn.unity/yarn.unity.dialogueviewbase)

## Summary

Called by the [DialogueRunner](https://docs.yarnspinner.dev/2.1/api/csharp/yarn.unity/yarn.unity.dialoguerunner) to signal that the view should dismiss its current line from display, and clean up.

```csharp
public virtual void DismissLine(Action onDismissalComplete)
```

## Remarks

This method is called when all Dialogue Views attached to a Dialogue Runner report that they have finished presenting this line. When this occurs, the Dialogue Runner calls [DismissLine(Action)](https://docs.yarnspinner.dev/2.1/api/csharp/yarn.unity/yarn.unity.dialogueviewbase/yarn.unity.dialogueviewbase.dismissline) on all Dialogue Views to tell them to clear their current line from display.

Depending on how the Dialogue View presents lines, "dismissing" a line may mean different things. For example, a Dialogue View that presents on-screen text might fade the text away, or a Dialogue View that presents voice-over dialogue may not need to do anything at all (because audio finished playing when the line finished presenting.)

{% hint style="info" %}
Dismissing the line can take time, but should ideally be as fast as possible, because the user will be waiting for the next piece of content to appear.
{% endhint %}

When the line has finished dismissing, this method calls onDismissalComplete to indicate that the dismissal is complete. When all Dialogue Views on a Dialogue Runner have finished dismissing, the Dialogue Runner moves on to the next piece of content.

{% hint style="info" %}
The default implementation of this method immediately calls the `onDismissalComplete` method (that is, it reports that it has finished dismissing the line the moment that it receives it), and otherwise does nothing.
{% endhint %}

## Parameters

| Name                         | Description                                                                      |
| ---------------------------- | -------------------------------------------------------------------------------- |
| `Action` onDismissalComplete | The method that should be called when the view has finished dismissing the line. |
