TMP Typewriter Effect AudioClip not working

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
Onebit
Posts: 15
Joined: Tue Aug 15, 2023 1:01 pm

TMP Typewriter Effect AudioClip not working

Post by Onebit »

Hi, when the NPC starts to talk, the AudioClip only sound 1 time and not each character. I have no idea why it is not working.
Thanks.
User avatar
Tony Li
Posts: 22112
Joined: Thu Jul 18, 2013 1:27 pm

Re: TMP Typewriter Effect AudioClip not working

Post by Tony Li »

Hi,

Check the duration of your audio clip. If the typewriter effect's "Interrupt Audio Clip" checkbox is unticked, the effect will allow the audio clip to play for its full duration. If the audio clip has a long bit of silence at the end, it could sound like it's only playing for the first character.

If that doesn't help, check the Console window for errors or warnings.
Onebit
Posts: 15
Joined: Tue Aug 15, 2023 1:01 pm

Re: TMP Typewriter Effect AudioClip not working

Post by Onebit »

Yes, it had a long silence at the end. Thanks.
And I can add more than one for each character. I mean, the player have x AudioClip when he talks and x NPC have another AudioClip.
User avatar
Tony Li
Posts: 22112
Joined: Thu Jul 18, 2013 1:27 pm

Re: TMP Typewriter Effect AudioClip not working

Post by Tony Li »

If you want to play different typewriter audio clips for each actor, see: How To: Vary Character Mumble Speak With Typewriter Effect
Onebit
Posts: 15
Joined: Tue Aug 15, 2023 1:01 pm

Re: TMP Typewriter Effect AudioClip not working

Post by Onebit »

It was working but when I added a portrait this is what happen:
Image
The cross is the portrait, the image doesn't load, and the position is wrong.
User avatar
Tony Li
Posts: 22112
Joined: Thu Jul 18, 2013 1:27 pm

Re: TMP Typewriter Effect AudioClip not working

Post by Tony Li »

Hi,

Check the Rect Transform of the portrait image. For example, the scale could be wrong.
Onebit
Posts: 15
Joined: Tue Aug 15, 2023 1:01 pm

Re: TMP Typewriter Effect AudioClip not working

Post by Onebit »

(I use custom subtitle panels)
Well, I found the problem, but I don't know how to resolve it.
The Dialogue UI of the character is created as children of it.
Image

But with the player, works correctly.
Here is a screenshot when the player talks:
Image
Here when the NPC (YOU) talks:
Image

I don't know why it happens.
User avatar
Tony Li
Posts: 22112
Joined: Thu Jul 18, 2013 1:27 pm

Re: TMP Typewriter Effect AudioClip not working

Post by Tony Li »

Hi,

Do your actor GameObjects have Dialogue Actor components?

If so, are you using overhead bubble subtitle panels like in How To: Show Overhead Conversation Bubble Text?

If not -- that is, if you want to use panels that are part of your dialogue UI -- then:

1. Inspect your dialogue UI. Assign those subtitle panels (Subtitle Panel Player and Subtitle Panel YOU) to the Standard Dialogue UI component's Conversation UI Elements > Subtitle Panels list. Also set the appropriate ones to the Default NPC Subtitle Panel and Default PC Subtitle Panel.

2. On your actor GameObjects' Dialogue Actor components, do not set Dialogue UI Settings > Subtitle Panel Number to Custom. Instead, set it to the number that corresponds to the element in the Subtitle Panels list (e.g., Panel0, Panel1, etc.).
Onebit
Posts: 15
Joined: Tue Aug 15, 2023 1:01 pm

Re: TMP Typewriter Effect AudioClip not working

Post by Onebit »

Okay, thanks so much. The problem was using custom panel. Again, thanks so much.
User avatar
Tony Li
Posts: 22112
Joined: Thu Jul 18, 2013 1:27 pm

Re: TMP Typewriter Effect AudioClip not working

Post by Tony Li »

Happy to help!
Post Reply