Hello!
I'm using FMOD in my project, witch means I won't be able to use the TextMeshProTypewriterEffect sound functionality.
How can I add FMOD support for the typewriter script?
Thank you!
Typewriter Effect FMOD typing sound support
- gaelgamesdev
- Posts: 16
- Joined: Wed Jan 19, 2022 11:17 am
Re: Typewriter Effect FMOD typing sound support
Hi,
Make a subclass of TextMeshProTypewriterEffect, and override the PlayCharacterAudio() method. Example:
Make a subclass of TextMeshProTypewriterEffect, and override the PlayCharacterAudio() method. Example:
Code: Select all
public class MyTypewriterEffect : TextMeshProTypewriterEffect
{
protected override void PlayCharacterAudio()
{
FMODUnity.RuntimeManager.PlayOneShot("event:/Typewriter");
}
}
- gaelgamesdev
- Posts: 16
- Joined: Wed Jan 19, 2022 11:17 am
Re: Typewriter Effect FMOD typing sound support
Thanks! Got it working!
Re: Typewriter Effect FMOD typing sound support
Great! Glad to help.