NetworkAnimator

NetworkAnimator synchronizes animations across the network.

The NetworkAnimator will detect values, layer weights, and speed changes automatically, and synchronize these changes efficiently.

However, most projects also depend on using crossfade, play, and other common Animator APIs.

To synchronize these actions over the network you will simply call each desired method on your NetworkAnimator reference.

//This will perform Play on your animator, and synchronize the
//action over the network.
_myNetworkAnimator.Play(stringOrHash);

There are several more common methods in our NetworkAnimator component that you will want to use. To see all methods you're encouraged to view our API or simply open the NetworkAnimator source file.

Here are some examples of commonly used methods.

_myNetworkAnimator.SetTriger(...)
_myNetworkAnimator.ResetTriger(...)
_myNetworkAnimator.CrossFade(...)

Other less commonly used actions are SetController and SetAnimator. You are encouraged to review the API on these when using, or even the XML when calling the method.

Last updated