Quantcast
Channel: Multiplayer
Viewing all articles
Browse latest Browse all 16796

How to make the OnSerialize send each time the vars are changed ?

$
0
0
Hi,

I try to avoid using NetworkTransform to make my character move on the network, before with Photon i used to use a Serialization method wich worked like a charm, now when i transpose the exact same code:
The vars are not serialized properly, in fact it sends the update at the begining of the movement and one more time at the end. i think i tried a lot of things to make it work with no success until i found that i could add :
Code (CSharp):
  1. SetDirtyBit(1);
in my update to force...

How to make the OnSerialize send each time the vars are changed ?

Viewing all articles
Browse latest Browse all 16796

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>