CanvasExtensions.FadeOutGraphics

Extension Method in CanvasExtensions

Declaration

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

Description

Fades the alpha of all graphics of the canvas to 0% 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.