This is a reference to the animation wave component :
- Animate On Start – will start the typing animation when the onStart method is called on the gameobject
- Override Animation – if the glyph is in the middle of animation , setting this to true will override the animation with a new one
- Wave Type – have several presets for the wave animation: Left To Right , Right To Left, Left To Right And Back , Right To Left and Back, Repeating Left to right, Repeating right to left and Repeating back and forth
- Glyph gap time – is the time between each glyph animation in the wave
- Word pause time – is a pause delay for when the wave reaches the end of a word in the text.
- Pause Time – is a pause delay between each phase of the wave. For example if you are using
the “Repeating Left to Right” Wave type , this is the pause between each wave repeat. - Animation Start Delay – The amount of seconds from the moment the animation is triggered until it actually starts.
- Animation Select Method – Random: selects a random animation from the array for each glyph . Sequential: each glyph is matched with an array index. the first glyph to the first animation preset , the seconds glyph to the seconds animation preset and so on…
Triggering the Wave animation from script
You can start and stop the wave animation using the following methods:
var wave= GetComponent<AnimationWave>();
wave.StartAnimation();
wave.StopAnimation();