I am trying to serialize a List<byte[ ]> (list of bytearrays) from a local authority player to it’s remote instances on other clients.
Ordinarily I would use a SyncVar or Synchronized List for this, but I don’t see a byte[ ] as an available type for those. So I tried to use OnSerialize and OnDeserialize – which worked great as long as the player was on the server, but OnSerialize is never called when the player is connected as a client.
What is the best method to serialize a List<byte[ ]> from a local authority player on a client to it’s remote instances?