A tool that allows the user to generate speech and thought bubbles with a variety of customizable effects. Supports HTML style rich text tags, and TextMeshPro.
SpeechAndThought.cs
- General Variables Y offset: How many Units above the gameObject bubbles will float.
- Transition Settings Scale Speed: How fast bubbles, images, and text grow / shrink. Fade Length: How long it takes for bubbles, images and text to fade in / out. Typing Letter Pause: The time between letters being "typed" on screen.
- Bubble Prefabs Thought Bubble: A prefab that holds sprites and fonts for thought bubbles.(see videos below for more information on setup) Speech Bubble: A prefab that holds sprites and fonts for speech bubbles.(see videos below for more information on setup)
- Transition Types (Scale: grows / shrinks, Fade: lower / raise alpha over time, Typed: text appears one letter at a time) Bubble Transition: use the selected transition when changing ,instantiating, or destroying bubbles. Image Transition: use the selected transition when changing ,instantiating, or destroying images. Text Transition: use the selected transition when changing ,instantiating, or destroying text.
- Automatic Disable Methods Disable After Time: if true bubbles and all there components will destroy themselves after Time. Time: how long it takes to disable the bubble (and all of its components) if DisableAfterTime is set to true.
Bubble.cs
- General Variables Movement Dampening: How much time it takes for the bubble to reach its target destination (ie. following the characters head). Image Rend: The SpriteRenderer that will be used to display images. - Bubble Line Renderers Lines are used to display a tail or "dots" that trail from bubbles towards the character. Line1 is required, but Line2 can be left empty in the inspector (if you wish to have no line simply set the Lines ColorGradient alpha to 0).
- Thought Bubble Dots "Dots" follow the line from line1 and are entirely optional. I recommend you set the alpha of line1 ColorGradient to 0 if you are using "dots".
- Speech Audio Clips Audio clips that will be randomly selected then played for dialogue.