Attached is a simple character controller sample project.
This does not do animation.
(There is a NetworkTransform bug with syncing rotation for CharacterControllers. This projects contains a workaround script that can be used until that is fixed).
I was trying to get two players’ animated characters working over the network. I wasn’t sure how to correctly sync their animations. The input layer uses isLocalPlayer, and I was hoping the sync character controller option would be enough. When i used that, it wouldn’t move at all (not just a rotation issue).
I removed the [SyncVar]'s in the script, in addition to that (since the RPC has the updated arguments at any point) and it works fine.
Why didn’t the earlier version work though? Since the movement variables were synchronized, it should have run the animation until each update, right?
Also, when would I set NetworkTransform.TransformSyncMode to Sync Character Controller?
I want to ask the same question as raja.bala:
Why didn’t the earlier version work though? Since the movement variables were synchronized, it should have run the animation until each update, right?
Also, when would I set NetworkTransform.TransformSyncMode to Sync Character Controller?