Page 1 of 1
Sending animation to 2 animator within Sequence?
Posted: Wed Nov 18, 2020 9:10 am
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.
Re: Sending animation to 2 animator within Sequence?
Posted: Wed Nov 18, 2020 9:50 am
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);
Re: Sending animation to 2 animator within Sequence?
Posted: Wed Nov 18, 2020 6:35 pm
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?
Re: Sending animation to 2 animator within Sequence?
Posted: Wed Nov 18, 2020 7:38 pm
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