Page 2 of 3
Re: Delay Typewriter Until Open
Posted: Mon Jun 07, 2021 11:40 am
by junwi21
Re: Delay Typewriter Until Open
Posted: Mon Jun 07, 2021 1:07 pm
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.
Re: Delay Typewriter Until Open
Posted: Mon Jun 07, 2021 2:01 pm
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?
Re: Delay Typewriter Until Open
Posted: Mon Jun 07, 2021 2:26 pm
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?
Re: Delay Typewriter Until Open
Posted: Mon Jun 07, 2021 3:22 pm
by junwi21
Yes it uses the trigger, it's just never triggered
Re: Delay Typewriter Until Open
Posted: Mon Jun 07, 2021 3:23 pm
by junwi21
Re: Delay Typewriter Until Open
Posted: Mon Jun 07, 2021 3:39 pm
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.
Re: Delay Typewriter Until Open
Posted: Mon Jun 07, 2021 3:45 pm
by junwi21
No it doesn't look like it.
Yes, seems like it from the demo scene.
Re: Delay Typewriter Until Open
Posted: Mon Jun 07, 2021 3:52 pm
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.
Re: Delay Typewriter Until Open
Posted: Tue Jun 08, 2021 4:43 am
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.