Forum Multiplayer Simple Serialiser

Discussion and help relating to the PlayerIO Multiplayer API.

Simple Serialiser

Postby plyoung » April 13th, 2017, 4:07 pm

I made this simple binary serializer (byte array) which I use with Unity and PlayerIO if anyone is interested in it.

It serialises to an from a byte array which PlayerIO can send around. It supports all the basic value types and also arrays and generic list. I have also included support for some common Unity types like Vector3.

Grab it from Github; https://github.com/plyoung/Simple-Serialiser
plyoung
 
Posts: 4
Joined: April 9th, 2017, 10:04 am

Re: Simple Serialiser

Postby plyoung » April 15th, 2017, 11:52 am

Just a heads-up to those who might be using this.

I fixed a serious bug in the List and Array serialisers. They were generating way too big byte arrays.
Also did some other small optimizations and added better handling of Enum.
plyoung
 
Posts: 4
Joined: April 9th, 2017, 10:04 am


Return to Multiplayer



cron