# useFadeEffect

Field in [LinePresenter](https://docs.yarnspinner.dev/api/csharp/yarn.unity/yarn.unity.linepresenter)

## Summary

Controls whether the line view should fade in when lines appear, and fade out when lines disappear.

```csharp
public bool useFadeEffect = true;
```

## Remarks

If this value is `true`, the [canvasGroup](https://docs.yarnspinner.dev/api/csharp/yarn.unity/yarn.unity.linepresenter/yarn.unity.linepresenter.canvasgroup) object's alpha property will animate from 0 to 1 over the course of [fadeUpDuration](https://docs.yarnspinner.dev/api/csharp/yarn.unity/yarn.unity.linepresenter/yarn.unity.linepresenter.fadeupduration) seconds when lines appear, and animate from 1 to zero over the course of [fadeDownDuration](https://docs.yarnspinner.dev/api/csharp/yarn.unity/yarn.unity.linepresenter/yarn.unity.linepresenter.fadedownduration) seconds when lines disappear.

If this value is `false`, the [canvasGroup](https://docs.yarnspinner.dev/api/csharp/yarn.unity/yarn.unity.linepresenter/yarn.unity.linepresenter.canvasgroup) object will appear instantaneously.

## See Also

* [LinePresenter.canvasGroup](https://docs.yarnspinner.dev/api/csharp/yarn.unity/yarn.unity.linepresenter/yarn.unity.linepresenter.canvasgroup): The canvas group that contains the UI elements used by this Line View.
* [LinePresenter.fadeUpDuration](https://docs.yarnspinner.dev/api/csharp/yarn.unity/yarn.unity.linepresenter/yarn.unity.linepresenter.fadeupduration): The time that the fade effect will take to fade lines in.
* [LinePresenter.fadeDownDuration](https://docs.yarnspinner.dev/api/csharp/yarn.unity/yarn.unity.linepresenter/yarn.unity.linepresenter.fadedownduration): The time that the fade effect will take to fade lines out.
