Page 1 of 1

Delay when use " \. "

Posted: Wed Jan 18, 2023 11:28 pm
by Kamotachi
Hi!

I'm using the typewriter.
When using "\." to make pauses between words, everything works, but with a small delay that executes the pauses later.

For example:
"Hello! \. How are you? I'm fine."

Instead of pausing after "Hello!", it would pause after "are you?". (so so)

I've been checking, but I don't know what it could be.

EDIT:
I've noticed that it works nice when I uncheck the "Rich Text" box, in the "TexMeshPro -Text (UI)" component.
The problem is that when unchecking that it shows <COLOR = #"AnyColorNumberHere> on the text subtitle.

But I've the feeling that the problem is when clicking that box to be able to use the RichText, it hides the text codes, but takes them into account when it has to delay. I don't know, it's a bit weird. I am a bit lost! hahaha

Im with versio 2.2.3

Re: Delay when use " \. "

Posted: Thu Jan 19, 2023 9:51 am
by Tony Li
Hi,

Are you using version 2.2.3 or 2.2.33? If you're using 2.2.3, can you back up your project and then update to 2.2.33?

I suspect that the delay after "are you?" is because of the question mark, not the preceding "\.". There should be no problem with ticking Rich Text.

On your TextMeshProTypewriterEffect, what are the values of these fields:
  • Full Pause Characters
  • Quarter Pause Characters
  • Full Pause Duration
  • Quarter Pause Duration

Re: Delay when use " \. "

Posted: Thu Jan 19, 2023 7:53 pm
by Kamotachi
I'm in 2.2.3.
I tried to update but destroys my template, I will try to do all again with calm today in the 2.33 version.

In any case, I'm sure it's not the question mark, the line I put was an example, the pause is made a little after where it should do. This happens in any sentence where I use it.

Full Pause Characters : nothing
Quarter Pause Characters : nothing
Full Pause Duration : 1
Quarter Pause Duration: .25

I'll keep checking, Let's see if I can get it working on 2.33 and report back!

Thanks!

Re: Delay when use " \. "

Posted: Thu Jan 19, 2023 7:59 pm
by Tony Li
I'm sorry your prefab got overwritten. To customize a prefab, duplicate it or make a prefab variant. Then customize this duplicate/variant and assign it to the Dialogue Manager. This way you won't lose your customizations when you update the Dialogue System.

Also, use version control so you can revert files back to older versions.

Re: Delay when use " \. "

Posted: Thu Jan 19, 2023 10:25 pm
by Kamotachi
I've already found the reason, but not the solution!

When you have a Dialogue Actor component, if you check "Set Subtitle color" this add a code to change the font color for this Actor, right?

When is check, the pause in the "\." happens late. But if I uncheck "Set Subtitle color" everything is ok!

I don't know how to explain it very well, but my conclusion is that when adding the code to change the color of the font, that extra text, even if it doesn't appear in the final text, takes notice and makes the pauses a little later in the text in places where it shouldn't. It's a bit confusing, but I think the problem is there.

Could it be a bug in version 2.3? (I haven't tried it with 2.33 yet). Or maybe is something wrong in my project ^^''
In any case I'll uncheck "Set Subtitle Color" and is solved! :mrgreen: No problem!

Re: Delay when use " \. "

Posted: Fri Jan 20, 2023 8:13 am
by Tony Li
I'll check that and, if it's an issue in 2.2.33, I'll fix it in 2.2.34.