GraphicExtensions.FadeIn

Extension Method in GraphicExtensions

Declaration

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

Description

Fades the alpha of the graphic to 100% 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.