Applies a fade effect to a GUI control. More...
Public Member Functions | |
void | SetFadeDurations (float fadeInDuration, float duration, float fadeOutDuration) |
override IEnumerator | Play () |
Plays the fade effect. More... | |
Public Member Functions inherited from PixelCrushers.DialogueSystem.UnityGUI.GUIEffect | |
virtual void | Stop () |
void | OnEnable () |
void | OnDisable () |
Public Attributes | |
float | fadeInDuration = 0.5f |
The duration to fade in. More... | |
float | duration = 1f |
The duration to stay visible before fading out. More... | |
float | fadeOutDuration = 0.5f |
The duration to fade out. More... | |
Public Attributes inherited from PixelCrushers.DialogueSystem.UnityGUI.GUIEffect | |
GUIEffectTrigger | trigger = GUIEffectTrigger.OnEnable |
The trigger that makes the effect play. More... | |
Applies a fade effect to a GUI control.
This effect works by changing the alpha value of GUI style.
|
virtual |
Plays the fade effect.
Implements PixelCrushers.DialogueSystem.UnityGUI.GUIEffect.
void PixelCrushers.DialogueSystem.UnityGUI.FadeEffect.SetFadeDurations | ( | float | fadeInDuration, |
float | duration, | ||
float | fadeOutDuration | ||
) |
float PixelCrushers.DialogueSystem.UnityGUI.FadeEffect.duration = 1f |
The duration to stay visible before fading out.
float PixelCrushers.DialogueSystem.UnityGUI.FadeEffect.fadeInDuration = 0.5f |
The duration to fade in.
float PixelCrushers.DialogueSystem.UnityGUI.FadeEffect.fadeOutDuration = 0.5f |
The duration to fade out.
If zero, the control doesn't fade out.