Page 1 of 1

[HELP]About "SetTypewriterSpeedToAudioLength"

Posted: Wed Jun 17, 2020 1:31 pm
by muramasa
I use a script "SetTypewriterSpeedToAudioLength" from the extra example,
https://www.pixelcrushers.com/download/8495/
But when I try to add it to my game and it didn't work correctly...

I already check many times, I can't find where I doing wrong...
My background is an art, not a programmer... so it is so difficult for me. :oops:
1. I add the script to subtitle text of NPC.
2. I set the default sequence that" AudioWait(Vocal/entrytag); Delay({{end}})"
3. when I play the game the audio file plays correctly, but the script didn't work correctly.
Please help me.

Re: [HELP]About "SetTypewriterSpeedToAudioLength"

Posted: Wed Jun 17, 2020 2:35 pm
by Tony Li
Hi,

A GameObject must be associated with the speaker.

To associate a GameObject, you can:
  • Assign GameObjects to the Dialogue System Trigger's Conversation Actor and Conversation Conversant fields,
  • Or add Dialogue Actor components to the GameObjects and select the corresponding actor from the dropdown,
  • Or name the GameObject the same name as the actor's Name in the dialogue database.

    Re: [HELP]About "SetTypewriterSpeedToAudioLength"

    Posted: Wed Jun 17, 2020 3:17 pm
    by muramasa
    Tony Li wrote: Wed Jun 17, 2020 2:35 pm Hi,

    A GameObject must be associated with the speaker.

    To associate a GameObject, you can:
    • Assign GameObjects to the Dialogue System Trigger's Conversation Actor and Conversation Conversant fields,
    • Or add Dialogue Actor components to the GameObjects and select the corresponding actor from the dropdown,
    • Or name the GameObject the same name as the actor's Name in the dialogue database.
    Oh yeah! I just fixed it by following your tip! Thank you, Tony!!

    Re: [HELP]About "SetTypewriterSpeedToAudioLength"

    Posted: Wed Jun 17, 2020 4:34 pm
    by Tony Li
    Happy to help!