KybernetikGames / animancer

Documentation for the Animancer Unity Plugin.
65 stars 8 forks source link

Syncing animations from an other #256

Closed klaszlo8207 closed 1 year ago

klaszlo8207 commented 1 year ago

I have 2 characters. The main character has a HybridAnimancerComponent that just playing states from a controller. The second one has a hibrid too. How can I play the same anim on the same time on the second one? So I want to syncing from the main to the second.

KybernetikGames commented 1 year ago

The only reliable way to do it with Animator Controllers is to give them both the same commands at the same time.

If they both have the same state names you could use GetCurrentAnimatorStateInfo on the main one then call Play on the second one with the main state's hash and time, but that would play the state instantly. You can't really recreate a transition in progress like that.