FadeAlpha(CanvasGroup,float,float,float,CoroutineInterruptToken)
Last updated
Last updated
Method in Effects
A coroutine that fades a CanvasGroup
object's opacity from from
to to
over the course of fadeTime
seconds, and then invokes onComplete
.
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.
stopToken
A that can be used to interrupt the coroutine.
CanvasGroup
canvasGroup
float
fadeTime