CanvasExtensions.FadeInGraphics

Extension Method in CanvasExtensions

Declaration

public static void FadeInGraphics(this Canvas canvas, float duration, bool ignoreTimeScale = false)

Description

Fades the alpha of all graphics of the canvas to 100% over the given duration.

Parameters

canvasThe canvas to fade.
durationThe amount of seconds it takes to fade the graphics.
ignoreTimeScaleIgnores the time scale when fading the graphics.