Provides a fade in/out effect for DF-GUI controls using a dfTweenFloat. More...
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 |
Provides a fade in/out effect for DF-GUI controls using a dfTweenFloat.
Make sure to set up a dfTweenFloat on the control, too.
IEnumerator PixelCrushers.DialogueSystem.DaikonForgeGUI.DaikonForgeFader.Play | ( | ) |
void PixelCrushers.DialogueSystem.DaikonForgeGUI.DaikonForgeFader.SetDurations | ( | float | fadeInDuration, |
float | showDuration, | ||
float | fadeOutDuration | ||
) |
float PixelCrushers.DialogueSystem.DaikonForgeGUI.DaikonForgeFader.fadeInDuration = 0.2f |
The duration in seconds to fade in.
bool PixelCrushers.DialogueSystem.DaikonForgeGUI.DaikonForgeFader.fadeOnEnable = true |
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.
float PixelCrushers.DialogueSystem.DaikonForgeGUI.DaikonForgeFader.showDuration = 1f |
The duration in seconds to show the control before fading out.