MirrorNetworking / kcp2k

MIT License
276 stars 47 forks source link

NetworkTransformReliable doesn't work with KCP Transport #48

Open KarmyDev opened 1 year ago

KarmyDev commented 1 year ago

When new player joins and moves, only the old player will see the update, but if old player moves, the new player won't see update.

Steps to reproduce:

  1. Make a new Unity project (Unity 2021.3.21f1)
  2. Add Mirror (Mirror-78.4.3)
  3. Make a Manager Game Object with NetworkManager, NetworkManagerHUD, and KcpTransport and assign it to NetworkManager
  4. Make player game object with simple Movement script
  5. Add NetworkTransformReliable to player object and select SyncDirection to ClientToServer.
  6. Turn that player into prefab and assign it to NetworkManager, remove it from scene and build the game
  7. Play and move on host and on client to see the issue