Page 1 of 1

Typewriter Effect FMOD typing sound support

Posted: Wed Jun 22, 2022 5:44 am
by gaelgamesdev
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!

Re: Typewriter Effect FMOD typing sound support

Posted: Wed Jun 22, 2022 9:21 am
by Tony Li
Hi,


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");
    }
}

Re: Typewriter Effect FMOD typing sound support

Posted: Wed Jun 29, 2022 4:31 am
by gaelgamesdev
Thanks! Got it working!

Re: Typewriter Effect FMOD typing sound support

Posted: Wed Jun 29, 2022 8:52 am
by Tony Li
Great! Glad to help.