Sending messages larger than 64KB

Hello,

I’m currently working on a procedurally generated game, and when someone connects to a server, the server sends him region files that can get up to sizes of 200KB. The max size of a file in Unity’s fragmented channel, AFAIK, is 64KB.

My question are:

  • Is there a built in solution for this?
  • How do big games in Unity do this?
  • If there is no built in solution, what is the best way to implement it, ID per message, a queue and a wrapper class that prevent messages over 64KB from being sent?

No, there is no built-in solution for fragments larger than 64K at this time.

Right, you would have to fragment the messages yourself to be chunks less than 64K, then reassemble them on the other side.

Or use some other transport mechanism, such as a web service.