FadeAlpha(CanvasGroup,float,float,float,CoroutineInterruptToken)
A coroutine that fades a
UnityEngine.CanvasGroup
object's opacity from from
to to
over the course of fadeTime
seconds, and then invokes onComplete
.public static IEnumerator FadeAlpha(CanvasGroup canvasGroup, float from, float to, float fadeTime, CoroutineInterruptToken stopToken = null)
Name | Description |
---|---|
float from | The opacity value to start fading from, ranging from 0 to 1. |
float to | The opacity value to end fading at, ranging from 0 to 1. |
UnityEngine.CanvasGroup canvasGroup | |
float fadeTime | |
Last modified 21d ago