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. | |
Public Member Functions inherited from PixelCrushers.DialogueSystem.UnityGUI.GUIEffect | |
IEnumerator | Play () |
Plays the effect. | |
virtual void | Stop () |
void | OnEnable () |
void | OnDisable () |
Public Attributes | |
float | fadeInDuration = 0.5f |
The duration to fade in. | |
float | duration = 1f |
The duration to stay visible before fading out. | |
float | fadeOutDuration = 0.5f |
The duration to fade out. | |
Public Attributes inherited from PixelCrushers.DialogueSystem.UnityGUI.GUIEffect | |
GUIEffectTrigger | trigger = GUIEffectTrigger.OnEnable |
The trigger that makes the effect play. | |
Applies a fade effect to a GUI control.
This effect works by changing the alpha value of GUI style.
|
inline |
Plays the fade effect.
|
inline |
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.