[HELP]About "SetTypewriterSpeedToAudioLength"

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
User avatar
muramasa
Posts: 20
Joined: Tue Feb 11, 2020 7:29 am

[HELP]About "SetTypewriterSpeedToAudioLength"

Post 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.
Attachments
02.jpg
02.jpg (100.63 KiB) Viewed 431 times
User avatar
Tony Li
Posts: 22054
Joined: Thu Jul 18, 2013 1:27 pm

Re: [HELP]About "SetTypewriterSpeedToAudioLength"

Post 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.
    User avatar
    muramasa
    Posts: 20
    Joined: Tue Feb 11, 2020 7:29 am

    Re: [HELP]About "SetTypewriterSpeedToAudioLength"

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

    Re: [HELP]About "SetTypewriterSpeedToAudioLength"

    Post by Tony Li »

    Happy to help!
    Post Reply