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

# OnPrepareForLine(MarkupParseResult,TMP\_Text)

Method in [ActionMarkupHandler](/3.1/api/csharp/yarn.unity/yarn.unity.actionmarkuphandler.md)

## Summary

Called when the line view receives the line, to prepare for showing the line.

```csharp
public abstract void OnPrepareForLine(MarkupParseResult line, TMP_Text text);
```

## Remarks

This method is called before any part of the line is visible, and is an opportunity to set up any part of the [ActionMarkupHandler](/3.1/api/csharp/yarn.unity/yarn.unity.actionmarkuphandler.md) 's display before the user can see it.

## Parameters

| Name                                                                                   | Description                                                    |
| -------------------------------------------------------------------------------------- | -------------------------------------------------------------- |
| [MarkupParseResult](/3.1/api/csharp/yarn.markup/yarn.markup.markupparseresult.md) line | The line being presented.                                      |
| `TMP_Text` text                                                                        | A `TMPro.TMP_Text` object that the line is being displayed in. |
