com.unity.netcode.gameobjects icon indicating copy to clipboard operation
com.unity.netcode.gameobjects copied to clipboard

Fix client authoritive `NetworkAnimator`

Open florius0 opened this issue 3 years ago • 1 comments

When synchronising Animator with NetworkAnimator component the second client (if number of clients is greater than 2) was not synchronised when IsServerAuthoritive() is false.

Changelog

  • Fixed: NetworkAnimator was not synced correctly for second client when not server-authoritive.

Testing and Documentation

  • No tests have been added.
  • No documentation changes or additions were necessary.

florius0 avatar Aug 11 '22 15:08 florius0

CLA assistant check
All committers have signed the CLA.

unity-cla-assistant avatar Aug 11 '22 15:08 unity-cla-assistant

This PR was brought into the build pipeline via PR-2127. Closing this PR now that it has been processed internally.

NoelStephensUnity avatar Aug 16 '22 16:08 NoelStephensUnity

@florius0 I found some other issues that prevented the PR from making it into the coming patch. If you are blocked, you can always use the fix/client-authoritative-networkanimator branch until it is merged. There is an edge case (or less frequent) scenario I need to make some adjustments for on that branch. So, unless you set multiple triggers at the same time on the same Animator that start multiple transition states it should work fine. 👍

NoelStephensUnity avatar Aug 18 '22 23:08 NoelStephensUnity

Thank you. We are currently using our fork cherry-picked on v1.0.0 and we'll watch for it in our project

florius0 avatar Aug 23 '22 15:08 florius0