PixelCrushers.DialogueSystem.UnityGUI.TypewriterEffect Class Reference

Applies a typewriter effect to the text of a GUI control. More...

Inheritance diagram for PixelCrushers.DialogueSystem.UnityGUI.TypewriterEffect:
Collaboration diagram for PixelCrushers.DialogueSystem.UnityGUI.TypewriterEffect:

Public Member Functions

override IEnumerator Play ()
 Plays the typewriter effect.
 
override void Stop ()
 Stops the effect.
 
- Public Member Functions inherited from PixelCrushers.DialogueSystem.UnityGUI.GUIEffect
IEnumerator Play ()
 Plays the effect.
 
void OnEnable ()
 
void OnDisable ()
 

Public Attributes

float charactersPerSecond = 50
 How fast to "type.".
 
AudioClip audioClip = null
 The audio clip to play with each character.
 
- Public Attributes inherited from PixelCrushers.DialogueSystem.UnityGUI.GUIEffect
GUIEffectTrigger trigger = GUIEffectTrigger.OnEnable
 The trigger that makes the effect play.
 

Properties

bool IsPlaying [get]
 Indicates whether the effect is playing.
 

Detailed Description

Applies a typewriter effect to the text of a GUI control.

Characters are displayed one at a time at a rate of charactersPerSecond.

Member Function Documentation

◆ Play()

override IEnumerator PixelCrushers.DialogueSystem.UnityGUI.TypewriterEffect.Play ( )
inline

Plays the typewriter effect.

◆ Stop()

override void PixelCrushers.DialogueSystem.UnityGUI.TypewriterEffect.Stop ( )
inlinevirtual

Stops the effect.

Reimplemented from PixelCrushers.DialogueSystem.UnityGUI.GUIEffect.

Member Data Documentation

◆ audioClip

AudioClip PixelCrushers.DialogueSystem.UnityGUI.TypewriterEffect.audioClip = null

The audio clip to play with each character.

◆ charactersPerSecond

float PixelCrushers.DialogueSystem.UnityGUI.TypewriterEffect.charactersPerSecond = 50

How fast to "type.".

Property Documentation

◆ IsPlaying

bool PixelCrushers.DialogueSystem.UnityGUI.TypewriterEffect.IsPlaying
get

Indicates whether the effect is playing.

true if this instance is playing; otherwise, false.


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