Provides a fade in/out effect for TK2D sprites and text meshes. 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. | |
float | showDuration = 1f |
The duration in seconds to show the sprite/text mesh before fading out. | |
float | fadeOutDuration = 0.2f |
The duration in seconds to fade out. | |
bool | fadeOnEnable = true |
Provides a fade in/out effect for TK2D sprites and text meshes.
Makes the TK2D element fade in/out when the game object is activated.
|
inline |
|
inline |
float PixelCrushers.DialogueSystem.TK2DSupport.TK2DFader.fadeInDuration = 0.2f |
The duration in seconds to fade in.
bool PixelCrushers.DialogueSystem.TK2DSupport.TK2DFader.fadeOnEnable = true |
float PixelCrushers.DialogueSystem.TK2DSupport.TK2DFader.fadeOutDuration = 0.2f |
The duration in seconds to fade out.
If 0
, there is no fade out and the sprite/text mesh stays visible.
float PixelCrushers.DialogueSystem.TK2DSupport.TK2DFader.showDuration = 1f |
The duration in seconds to show the sprite/text mesh before fading out.