Delay Typewriter Until Open

Announcements, support questions, and discussion for the Dialogue System.
junwi21
Posts: 35
Joined: Wed Jan 27, 2021 12:18 am

Re: Delay Typewriter Until Open

Post by junwi21 »

User avatar
Tony Li
Posts: 22034
Joined: Thu Jul 18, 2013 1:27 pm

Re: Delay Typewriter Until Open

Post by Tony Li »

Is the panel going to the Focus state in the Animator window?

If so, try UNticking Has Focus. I'm trying to figure out what's going on. Then I can provide a correct solution.
junwi21
Posts: 35
Joined: Wed Jan 27, 2021 12:18 am

Re: Delay Typewriter Until Open

Post by junwi21 »

The animator doesn't go to the focus state. Even if I force it to go to the focus state by making focus true, it doesn't make the subtitles appear anyway. Unticking has focus has no affect.

I am not sure what all these animation states do. Where can I read what is focus and unfocus?
I have my own animator for this dialogue - can I plug that in instead so the timing is more accurate?
User avatar
Tony Li
Posts: 22034
Joined: Thu Jul 18, 2013 1:27 pm

Re: Delay Typewriter Until Open

Post by Tony Li »

You can try plugging it in, but I suspect it will have the same problem unless there's a problem with your copy of the Canvas Group Animator Controller.

The Show and Focus states should be very fast. If there is a long delay, the subtitle panel is probably waiting for the Focus trigger parameter to take effect. Does the transition from Show to Focus still use the Focus trigger parameter?
junwi21
Posts: 35
Joined: Wed Jan 27, 2021 12:18 am

Re: Delay Typewriter Until Open

Post by junwi21 »

Yes it uses the trigger, it's just never triggered
junwi21
Posts: 35
Joined: Wed Jan 27, 2021 12:18 am

Re: Delay Typewriter Until Open

Post by junwi21 »

http://icecream.me/7edc842af47c93a9036e75bb4071bdae
Pretty sure these are the default settings
User avatar
Tony Li
Posts: 22034
Joined: Thu Jul 18, 2013 1:27 pm

Re: Delay Typewriter Until Open

Post by Tony Li »

Hi,

In the Animator window, does the Focus trigger parameter ever get set?

Do the built-in prefabs such as Basic Standard Dialogue UI work correctly?

Reminder: Please feel free to send a reproduction project or reproduction steps to tony (at) pixelcrushers.com if you want me to take a direct look.
junwi21
Posts: 35
Joined: Wed Jan 27, 2021 12:18 am

Re: Delay Typewriter Until Open

Post by junwi21 »

No it doesn't look like it.
Yes, seems like it from the demo scene.
User avatar
Tony Li
Posts: 22034
Joined: Thu Jul 18, 2013 1:27 pm

Re: Delay Typewriter Until Open

Post by Tony Li »

The long delay is caused by the subtitle panel waiting for either the Show animation or the Focus animation.

It could be waiting for the Show animation without realizing that the Show animation is playing. This could happen if there's a configuration issue. In this case, it will wait a maximum of 10 seconds and then time out.

Please try this:
  • Temporarily assign the Basic Standard Dialogue UI prefab to the Dialogue Manager's Dialogue UI field. When asked, select 'Add Instance'. This will add an instance to the Dialogue Manager's Canvas.
  • Inspect the instance's NPC Subtitle Panel. Tick Delay Typewriter Until Open.
  • Test the scene. Confirm that it works correctly.
    • If it works correctly, compare the configuration with your own dialogue UI.
    • If it doesn't work, back up your project and re-import the Basic Standard Dialogue UI prefab and Canvas Group Animator Controller from the Asset Store. (Or just import the whole thing; version 2.2.17 just released today.) Maybe something got corrupted or changed in your copy of the files.
junwi21
Posts: 35
Joined: Wed Jan 27, 2021 12:18 am

Re: Delay Typewriter Until Open

Post by junwi21 »

Hm yes it's better now but now it has this delay before every npc subtitle.
I just want the delay before the first one.

Also, the word "Player" shows up during the player responses in the name panel then disappears after like a second.

Also the dialogue typewriter text sound only plays like once per word or less - i thought it would play per character.
Post Reply