# OnPrepareForLine(MarkupParseResult,TMP\_Text)

Method in [ActionMarkupHandler](https://docs.yarnspinner.dev/api/csharp/yarn.unity/yarn.unity.actionmarkuphandler)

## 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](https://docs.yarnspinner.dev/api/csharp/yarn.unity/yarn.unity.actionmarkuphandler) 's display before the user can see it.

## Parameters

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