In my game,player can use their own meshes and textures,when they use these files in the online game,they should send the files to the other players in the same game room.How to do this in Unity?I see the RPC can’t transfer binary block.
There’s no easy way, you’d have to use the .net framework’s networking library.
Thanks for relying!
We are going to use the built-in RPC to send files.Because Unity already help us punch through the NAT,so we think it’s not a good idear to open another socket using .NET and punch through the NAT again.
We have found the RPC function’s limit is 4096bytes,so we dedide to conver the file into base64 code string,split it into small blocks,then use several RPC calls to finish it.