Page 1 of 1
TMP Typewriter Effect AudioClip not working
Posted: Wed Aug 16, 2023 5:05 pm
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.
Re: TMP Typewriter Effect AudioClip not working
Posted: Wed Aug 16, 2023 8:26 pm
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.
Re: TMP Typewriter Effect AudioClip not working
Posted: Thu Aug 17, 2023 6:25 am
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.
Re: TMP Typewriter Effect AudioClip not working
Posted: Thu Aug 17, 2023 7:35 am
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
Re: TMP Typewriter Effect AudioClip not working
Posted: Thu Aug 17, 2023 11:08 am
by Onebit
It was working but when I added a portrait this is what happen:
The cross is the portrait, the image doesn't load, and the position is wrong.
Re: TMP Typewriter Effect AudioClip not working
Posted: Thu Aug 17, 2023 12:54 pm
by Tony Li
Hi,
Check the Rect Transform of the portrait image. For example, the scale could be wrong.
Re: TMP Typewriter Effect AudioClip not working
Posted: Thu Aug 17, 2023 2:44 pm
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.
But with the player, works correctly.
Here is a screenshot when the player talks:
Here when the NPC (YOU) talks:
I don't know why it happens.
Re: TMP Typewriter Effect AudioClip not working
Posted: Thu Aug 17, 2023 3:38 pm
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.).
Re: TMP Typewriter Effect AudioClip not working
Posted: Thu Aug 17, 2023 4:07 pm
by Onebit
Okay, thanks so much. The problem was using custom panel. Again, thanks so much.
Re: TMP Typewriter Effect AudioClip not working
Posted: Thu Aug 17, 2023 4:51 pm
by Tony Li
Happy to help!