# ActionMarkupHandler

Class in [Yarn.Unity](https://docs.yarnspinner.dev/3.1/api/csharp/yarn.unity)

Inherits from `UnityEngine.MonoBehaviour`

## Summary

This is an abstract monobehaviour that conforms to the [IActionMarkupHandler](https://docs.yarnspinner.dev/3.1/api/csharp/yarn.unity/yarn.unity.iactionmarkuphandler) interface.

```csharp
public abstract class ActionMarkupHandler : MonoBehaviour, IActionMarkupHandler
```

## Remarks

Intended to be used in situations where you require a monobehaviour version of the interfaces. This is used by [LinePresenter](https://docs.yarnspinner.dev/3.1/api/csharp/yarn.unity/yarn.unity.linepresenter) to have a list of handlers that can be connected up via the inspector.

## Methods

| Name                                                                                                                                                                                                         | Description                                                                          |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ |
| [OnCharacterWillAppear(int,MarkupParseResult,CancellationToken)](https://docs.yarnspinner.dev/3.1/api/csharp/yarn.unity/yarn.unity.actionmarkuphandler/yarn.unity.actionmarkuphandler.oncharacterwillappear) | Called repeatedly for each visible character in the line.                            |
| [OnLineDisplayBegin(MarkupParseResult,TMP\_Text)](https://docs.yarnspinner.dev/3.1/api/csharp/yarn.unity/yarn.unity.actionmarkuphandler/yarn.unity.actionmarkuphandler.onlinedisplaybegin)                   | Called immediately before the first character in the line is presented.              |
| [OnLineDisplayComplete()](https://docs.yarnspinner.dev/3.1/api/csharp/yarn.unity/yarn.unity.actionmarkuphandler/yarn.unity.actionmarkuphandler.onlinedisplaycomplete)                                        | Called after the last call to `PresentCharacter(int, TMP_Text, CancellationToken)` . |
| [OnLineWillDismiss()](https://docs.yarnspinner.dev/3.1/api/csharp/yarn.unity/yarn.unity.actionmarkuphandler/yarn.unity.actionmarkuphandler.onlinewilldismiss)                                                | Called right before the line will dismiss itself.                                    |
| [OnPrepareForLine(MarkupParseResult,TMP\_Text)](https://docs.yarnspinner.dev/3.1/api/csharp/yarn.unity/yarn.unity.actionmarkuphandler/yarn.unity.actionmarkuphandler.onprepareforline)                       | Called when the line view receives the line, to prepare for showing the line.        |
