Sending animation to 2 animator within Sequence?

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
fkkcloud
Posts: 298
Joined: Mon Oct 05, 2020 6:00 am

Sending animation to 2 animator within Sequence?

Post by fkkcloud »

Hi,

Is there support to send animation to 2 different Animators at the same time?

Before I jump into create a custom sequencer, just wanted to check. :D
User avatar
Tony Li
Posts: 22051
Joined: Thu Jul 18, 2013 1:27 pm

Re: Sending animation to 2 animator within Sequence?

Post by Tony Li »

Hi,

I'm not sure what you mean. You can use two sequencer commands. For example, this will tell NPC_A to play "Dance1" and NPC_B to play "Dance2":

Code: Select all

AnimatorPlayWait(Dance1, NPC_A);
AnimatorPlayWait(Dance2, NPC_B);
fkkcloud
Posts: 298
Joined: Mon Oct 05, 2020 6:00 am

Re: Sending animation to 2 animator within Sequence?

Post by fkkcloud »

Hi, would NPC_2 be fine with the below condition?

I hope not to register NPC_2 in the Actors section.
I hope to put no DialogueSystem related components on the NPC_2 gameObject(and its hierarchy).

Would it just search the whole scene by checking its name that has "NPC_2" string + AnimatorComponent?
Maybe its better to have itadded to Actors and put at least `Dialogue Actor` component on it?
User avatar
Tony Li
Posts: 22051
Joined: Thu Jul 18, 2013 1:27 pm

Re: Sending animation to 2 animator within Sequence?

Post by Tony Li »

Hi,

If the Dialogue System doesn't find a GameObject that has a Dialogue Actor set to "NPC_2", it will look for a GameObject named "NPC_2". More info: Character GameObject Assignments
Post Reply