OnPhotonSerialize view sending duplicates??

Hi, I'm using OnPhotonSerialize view (PUN 2.15) with a view defined as Unreliable On Change. However, I'm seeing that the receiving party is always getting data even when the sender is issuing duplicate data - in this case an array of Vector3 with as single element of Vector3.zero. My reading of the API is that the clients should only be receiving data when it has changed. Is this because I'm new-ing a new single element array each time?

Answers

  • I think arrays of Vector3 are not properly supported when checking if the data is the same. If you send multiple Vector3 in the stream, this should make a difference.