Hi, I would like to ask how to play sound when each word of dialogue displays.
example:
Dialog: "Forest is at the north of the village."
I would like play text sound like:
"Forest"->Play text sound ->"is"->Play text sound->"at"->Play text sound->...
Is there event for each word displays?
How to play sound when each word displays
Re: How to play sound when each word displays
Hi,
Here are two ways you could do this:
1. Make a subclass of your typewriter effect (e.g., UnityUITypewriterEffect or TextMeshProTypewriterEffect). Override the PlayCharacterAudio(char) method to only play a sound if the character is non-alphanumeric (such as ' ' or '.').
2. Or use Text Animator for Unity and add a custom behavior tag such as <sound> between each word.
Here are two ways you could do this:
1. Make a subclass of your typewriter effect (e.g., UnityUITypewriterEffect or TextMeshProTypewriterEffect). Override the PlayCharacterAudio(char) method to only play a sound if the character is non-alphanumeric (such as ' ' or '.').
2. Or use Text Animator for Unity and add a custom behavior tag such as <sound> between each word.