Page 1 of 1

Animation play on specific DialogueEntry

Posted: Fri May 24, 2024 9:47 am
by flyingv
Hi!

I want to play an animation on DialogueEntry via Sequence AnimatorTrigger(Talking)
But, there is nothing happened and the info log appears "Dialogue System: Sequencer: AnimatorTrigger(Talking, Mike): No Animator found on Mike"

As I understand, Animator component should be attached to the root of prefab? Because I have Animator attached to the child Model GameObject. How to solve this issue?

Thanks.

Re: Animation play on specific DialogueEntry

Posted: Fri May 24, 2024 12:23 pm
by Tony Li
hi,

It will look for an Animator on children, too. Is it finding the correct GameObject named "Mike"? Since you've omitted the subject parameter (which is probably the right thing to do), it will use the speaker GameObject. See: Character GameObject Assignments to confirm that the correct GameObject is being used for the speaker.

Re: Animation play on specific DialogueEntry

Posted: Sat May 25, 2024 1:46 pm
by flyingv
I've added a link to Conversation Actor property and added DialogueActor component. And it works!

Thanks!

Re: Animation play on specific DialogueEntry

Posted: Sat May 25, 2024 1:57 pm
by Tony Li
Glad to help!