Page 1 of 3

Delay Typewriter Until Open

Posted: Sat Jun 05, 2021 8:01 pm
by junwi21
So, without this option selected, the first dialogue will appear in the text before my dialog box appears (and the typewriter SFX will be playing too before it appears)

But, if I select this option, the dialogue is super delayed - like it takes a minute or so to show up (and if I click, the NPC's dialog will be so delayed that it will appear in the box during the player's response choices where it shouldn't be)

Re: Delay Typewriter Until Open

Posted: Sat Jun 05, 2021 8:52 pm
by Tony Li
Hi,

Is it delaying for 10 seconds? If so, then there's probably an issue with the Show animation. Keep an Animator window open on your panel's animator during play to see if it's perhaps getting into the wrong state. If 'Delay Typewriter Until Open' is ticked, the typewriter won't start until the Show animation completes -- but if the Show animation never completes (usually because it's configured wrong), it will time out after 10 seconds and then start typing.

Re: Delay Typewriter Until Open

Posted: Sun Jun 06, 2021 2:40 am
by junwi21
Yes, the show animation is running to the end but the actual text doesn't appear for 10 seconds

Re: Delay Typewriter Until Open

Posted: Sun Jun 06, 2021 9:29 am
by Tony Li
Hi,

Can you post screenshots of your subtitle panel's Inspector (in particular the Animator and Standard UI Subtitle Panel components) and the Animator window showing the subtitle panel's animator controller and parameters?

Are you pausing time (e.g., Time.timeScale = 0) during conversations? If so, make sure your Animator's Update Mode is set to Unscaled Time or it won't be able to update while paused.

Re: Delay Typewriter Until Open

Posted: Sun Jun 06, 2021 10:46 am
by junwi21

Re: Delay Typewriter Until Open

Posted: Sun Jun 06, 2021 2:11 pm
by Tony Li
Hi,

Try setting the Standard UI Subtitle Panel component's Focus Animation Trigger to "Focus" and Unfocus Animation Trigger to "Unfocus" (without quotes).

Re: Delay Typewriter Until Open

Posted: Mon Jun 07, 2021 2:23 am
by junwi21
That did not work

Re: Delay Typewriter Until Open

Posted: Mon Jun 07, 2021 8:38 am
by Tony Li
Keep an Animator window open on the subtitle panel. Is the subtitle panel's Animator transitioning to the correct states (e.g., Show -> Focus)?

Reminder: You are welcome to send a reproduction project to tony (at) pixelcrushers.com. I'll be happy to take a look directly.

Re: Delay Typewriter Until Open

Posted: Mon Jun 07, 2021 9:36 am
by junwi21
No, the focus variable never becomes true and the animator never transitions to the focus state.
Can I trigger this manually?

Re: Delay Typewriter Until Open

Posted: Mon Jun 07, 2021 10:53 am
by Tony Li
Did you set the Standard UI Subtitle Panel component's Focus Animation Trigger field to "Focus" (without quotes)?