Ved Sarkar
Ved Sarkar

Reputation: 261

Unity:Multiplayer Transformation lagging

I am building a multiplayer game in unity.Currently facing an issue ,the players transformation lags in the other device it is connected too but the transformation is fine in its own device.Plus it also does not show the player transformation animation like walking etc.

NetworkTransform of Player NetworkTransform of Player

Upvotes: 0

Views: 2543

Answers (2)

Muhammad Faizan Khan
Muhammad Faizan Khan

Reputation: 10561

You can increase network send rate to avoid lag in movement. Currently it is set to 9 (as your image depicted) while for animation on network please see Network animator.

The NetworkAnimator is used to synchronize animations across the network{tut here}.

Upvotes: 1

Cổ Chí Tâm
Cổ Chí Tâm

Reputation: 328

In this case i don't use NetworkTransition i used synchonize position and update each Client.

https://docs.unity3d.com/ScriptReference/Networking.SyncVarAttribute.html

Second i reference use NetworkAnimator to solve animation synchonize issue:

https://docs.unity3d.com/Manual/class-NetworkAnimator.html

Upvotes: 0

Related Questions