GraphicExtensions.FadeOut

Extension Method in GraphicExtensions

Declaration

public static void FadeOut(this Graphic graphic, float duration, bool ignoreTimeScale = false)

Description

Fades the alpha of the graphic to 0% over the given duration.

Parameters

graphicThe graphic to fade.
durationThe amount of seconds it takes to fade the graphic.
ignoreTimeScaleIgnores the time scale when fading the graphic.