Hi, is this possible? Probably something I don't know but at the moment if I try to send a custom class through a Command I get unetweaver errors like here: http://forum.unity3d.com/threads/un...preventing-me-from-testing-my-project.356283/ Also the class info I'm trying to send is from a different script (static one) so no syncvar here. Thank you.
Hey, if you're trying to send class instances, you may use NetworkBehaviour.OnDeserialize() and NetworkBehaviour.OnSerialize() messages to perform custom serialization. Read more in docs: http://docs.unity3d.com/Manual/UNetStateSync.html
Similar to what Dmitriy suggests, I usually have custom serialize & deserialize methods for classes I want to send over the network. Remote actions (like Command and ClientRPC) can take your serialized class byte arrays as parameters.