Delay Typewriter Until Open

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

Delay Typewriter Until Open

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

Re: Delay Typewriter Until Open

Post 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.
junwi21
Posts: 35
Joined: Wed Jan 27, 2021 12:18 am

Re: Delay Typewriter Until Open

Post by junwi21 »

Yes, the show animation is running to the end but the actual text doesn't appear for 10 seconds
User avatar
Tony Li
Posts: 22037
Joined: Thu Jul 18, 2013 1:27 pm

Re: Delay Typewriter Until Open

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

Re: Delay Typewriter Until Open

Post 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).
junwi21
Posts: 35
Joined: Wed Jan 27, 2021 12:18 am

Re: Delay Typewriter Until Open

Post by junwi21 »

That did not work
User avatar
Tony Li
Posts: 22037
Joined: Thu Jul 18, 2013 1:27 pm

Re: Delay Typewriter Until Open

Post 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.
junwi21
Posts: 35
Joined: Wed Jan 27, 2021 12:18 am

Re: Delay Typewriter Until Open

Post by junwi21 »

No, the focus variable never becomes true and the animator never transitions to the focus state.
Can I trigger this manually?
User avatar
Tony Li
Posts: 22037
Joined: Thu Jul 18, 2013 1:27 pm

Re: Delay Typewriter Until Open

Post by Tony Li »

Did you set the Standard UI Subtitle Panel component's Focus Animation Trigger field to "Focus" (without quotes)?
Post Reply