Easy Multiplayer
  • Welcome
  • Messenger
    • Overview
    • Concept
    • Getting Started
    • Redirection
    • Serialization
    • Samples
  • Utils
    • MultiplayerUtils
Powered by GitBook
On this page
  1. Messenger

Serialization

PreviousRedirectionNextSamples

Last updated 5 months ago

Serialization is straightforward: we serialize each parameter to JSON, send it, and then deserialize it on the receiving end. For more information on this process, check out the .

Since Messenger uses json serialization, custom class references are supported as well! Messenger.ToServer(MyMessage, MyCustomClass);

If you want to see how Messenger utilizes JSON serialization, take a look at the Messenger.Serialization.cs class.

There are also examples in the samples folder itself, please go to the for more explanation.

JSON.net documentation
samples page