com.unity.netcode.gameobjects
com.unity.netcode.gameobjects copied to clipboard
Fix client authoritive `NetworkAnimator`
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:
NetworkAnimatorwas 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.
This PR was brought into the build pipeline via PR-2127. Closing this PR now that it has been processed internally.
@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. 👍
Thank you. We are currently using our fork cherry-picked on v1.0.0 and we'll watch for it in our project