Delay when use " \. "

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
Kamotachi
Posts: 44
Joined: Fri Nov 29, 2019 9:03 pm

Delay when use " \. "

Post 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
User avatar
Tony Li
Posts: 21678
Joined: Thu Jul 18, 2013 1:27 pm

Re: Delay when use " \. "

Post 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
Kamotachi
Posts: 44
Joined: Fri Nov 29, 2019 9:03 pm

Re: Delay when use " \. "

Post 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!
User avatar
Tony Li
Posts: 21678
Joined: Thu Jul 18, 2013 1:27 pm

Re: Delay when use " \. "

Post 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.
Kamotachi
Posts: 44
Joined: Fri Nov 29, 2019 9:03 pm

Re: Delay when use " \. "

Post 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!
User avatar
Tony Li
Posts: 21678
Joined: Thu Jul 18, 2013 1:27 pm

Re: Delay when use " \. "

Post 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.
Post Reply