Animation play on specific DialogueEntry

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
flyingv
Posts: 8
Joined: Wed Apr 10, 2024 4:03 am

Animation play on specific DialogueEntry

Post 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.
Attachments
Screenshot 2024-05-24 at 16.32.41.png
Screenshot 2024-05-24 at 16.32.41.png (69.89 KiB) Viewed 197 times
Screenshot 2024-05-24 at 16.31.55.png
Screenshot 2024-05-24 at 16.31.55.png (46.84 KiB) Viewed 197 times
User avatar
Tony Li
Posts: 20993
Joined: Thu Jul 18, 2013 1:27 pm

Re: Animation play on specific DialogueEntry

Post 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.
flyingv
Posts: 8
Joined: Wed Apr 10, 2024 4:03 am

Re: Animation play on specific DialogueEntry

Post by flyingv »

I've added a link to Conversation Actor property and added DialogueActor component. And it works!

Thanks!
User avatar
Tony Li
Posts: 20993
Joined: Thu Jul 18, 2013 1:27 pm

Re: Animation play on specific DialogueEntry

Post by Tony Li »

Glad to help!
Post Reply