# Effects

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

Inherits from `System.Object`

## Summary

```csharp
public static class Effects
```

## Methods

| Name                                                                                                                                                                        | Description                                                                                                                                                                                                                                                                                                                                                           |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [FadeAlpha(CanvasGroup,float,float,float,Action,InterruptionFlag)](https://docs.yarnspinner.dev/2.0/api/csharp/yarn.unity/yarn.unity.effects/yarn.unity.effects.fadealpha)  | A coroutine that fades a `CanvasGroup` object's opacity from `from` to `to` over the course of `fadeTime` seconds, and then invokes `onComplete` . An [InterruptionFlag](https://docs.yarnspinner.dev/2.0/api/csharp/yarn.unity/yarn.unity.interruptionflag) may be used to signal that the fade should be interrupted; if this happens, the opacity is set to `to` . |
| [Typewriter(TextMeshProUGUI,float,Action,Action,InterruptionFlag)](https://docs.yarnspinner.dev/2.0/api/csharp/yarn.unity/yarn.unity.effects/yarn.unity.effects.typewriter) |                                                                                                                                                                                                                                                                                                                                                                       |
