PixelCrushers.DialogueSystem.DaikonForgeGUI.DaikonForgeFader Class Reference

Provides a fade in/out effect for DF-GUI controls using a dfTweenFloat. More...

Inheritance diagram for PixelCrushers.DialogueSystem.DaikonForgeGUI.DaikonForgeFader:
Collaboration diagram for PixelCrushers.DialogueSystem.DaikonForgeGUI.DaikonForgeFader:

Public Member Functions

void SetDurations (float fadeInDuration, float showDuration, float fadeOutDuration)
 
IEnumerator Play ()
 

Public Attributes

float fadeInDuration = 0.2f
 The duration in seconds to fade in. More...
 
float showDuration = 1f
 The duration in seconds to show the control before fading out. More...
 
float fadeOutDuration = 0.2f
 The duration in seconds to fade out. More...
 
bool fadeOnEnable = true
 

Detailed Description

Provides a fade in/out effect for DF-GUI controls using a dfTweenFloat.

Make sure to set up a dfTweenFloat on the control, too.

Member Function Documentation

◆ Play()

IEnumerator PixelCrushers.DialogueSystem.DaikonForgeGUI.DaikonForgeFader.Play ( )

◆ SetDurations()

void PixelCrushers.DialogueSystem.DaikonForgeGUI.DaikonForgeFader.SetDurations ( float  fadeInDuration,
float  showDuration,
float  fadeOutDuration 
)

Member Data Documentation

◆ fadeInDuration

float PixelCrushers.DialogueSystem.DaikonForgeGUI.DaikonForgeFader.fadeInDuration = 0.2f

The duration in seconds to fade in.

◆ fadeOnEnable

bool PixelCrushers.DialogueSystem.DaikonForgeGUI.DaikonForgeFader.fadeOnEnable = true

◆ fadeOutDuration

float PixelCrushers.DialogueSystem.DaikonForgeGUI.DaikonForgeFader.fadeOutDuration = 0.2f

The duration in seconds to fade out.

If 0, there is no fade out and the control stays visible.

◆ showDuration

float PixelCrushers.DialogueSystem.DaikonForgeGUI.DaikonForgeFader.showDuration = 1f

The duration in seconds to show the control before fading out.


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