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

SyncVar with custom structs bug?

$
0
0
I have a custom struct with 2 private ints, i set the values in the constructor and get the value with public properties, my syncVar struct has a hook method and when i update the struct variable the server/host has the right struct, but the client gets a "zero struct" my private ints are 0, I added a public variable to the struct and it looks like only public variables are updated.
What's the point of SyncVar on structs if private variables are ignored, it should be easy to serialize a...

SyncVar with custom structs bug?

Viewing all articles
Browse latest Browse all 16796

Trending Articles



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