So I’m making a military style shooter using UNET and all was going great until I had to add the soldier model with a fully rigged skeleton and animator. The only possible way I can find to sync animations over the network is to use the “NetworkAnimator”. But my dumbass decided not to test it just yet and when it came time to add the ragdoll. I finally tested it and every time I tried to kill the host player, it would throw and error and not spawn a ragdoll for the global players. But on the host screen, he dies just fine and the ragdoll spawns in. But when the host kills any other client all is good.
The error I am getting is “IndexOutOfRangeException: NetworkReader:ReadByte out of range:NetBuf sz:0 pos:0”. After 3 days of surfing the very few helpful forums out there I find out that the Network Animator is causing the issue so I disable, build the game and it works just fine, 100%.
So I guess my issue is how else am I supposed to sync a fully rigged soldier model over the network without causing errors with the Network Animator.