NiceTouch v2.1
MoreMountains.Tools.MMFade Class Reference

Fade helpers More...

Static Public Member Functions

static IEnumerator FadeImage (Image target, float duration, Color color)
 Fades the specified image to the target opacity and duration. More...
 
static IEnumerator FadeText (Text target, float duration, Color color)
 Fades the specified image to the target opacity and duration. More...
 
static IEnumerator FadeSprite (SpriteRenderer target, float duration, Color color)
 Fades the specified image to the target opacity and duration. More...
 
static IEnumerator FadeCanvasGroup (CanvasGroup target, float duration, float targetAlpha, bool unscaled=true)
 

Detailed Description

Fade helpers

Member Function Documentation

◆ FadeCanvasGroup()

static IEnumerator MoreMountains.Tools.MMFade.FadeCanvasGroup ( CanvasGroup  target,
float  duration,
float  targetAlpha,
bool  unscaled = true 
)
static

◆ FadeImage()

static IEnumerator MoreMountains.Tools.MMFade.FadeImage ( Image  target,
float  duration,
Color  color 
)
static

Fades the specified image to the target opacity and duration.

Parameters
targetTarget.
opacityOpacity.
durationDuration.

◆ FadeSprite()

static IEnumerator MoreMountains.Tools.MMFade.FadeSprite ( SpriteRenderer  target,
float  duration,
Color  color 
)
static

Fades the specified image to the target opacity and duration.

Parameters
targetTarget.
opacityOpacity.
durationDuration.

◆ FadeText()

static IEnumerator MoreMountains.Tools.MMFade.FadeText ( Text  target,
float  duration,
Color  color 
)
static

Fades the specified image to the target opacity and duration.

Parameters
targetTarget.
opacityOpacity.
durationDuration.

The documentation for this class was generated from the following file: