> 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/2.0/api/csharp/yarn.unity/yarn.unity.effects/yarn.unity.effects.typewriter.md).

# Typewriter(TextMeshProUGUI,float,Action,Action,InterruptionFlag)

Method in [Effects](/2.0/api/csharp/yarn.unity/yarn.unity.effects.md)

## Summary

```csharp
public static IEnumerator Typewriter(TextMeshProUGUI text, float lettersPerSecond, Action onCharacterTyped = null, Action onComplete = null, InterruptionFlag interruption = null)
```

## Parameters

| Name                                                                                                  | Description |
| ----------------------------------------------------------------------------------------------------- | ----------- |
| `TextMeshProUGUI` text                                                                                |             |
| `float` lettersPerSecond                                                                              |             |
| `Action` onCharacterTyped                                                                             |             |
| `Action` onComplete                                                                                   |             |
| [Yarn.Unity.InterruptionFlag](/2.0/api/csharp/yarn.unity/yarn.unity.interruptionflag.md) interruption |             |
