© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2022
S. Kelly, K. KumarUnity Networking Fundamentalshttps://doi.org/10.1007/978-1-4842-7358-6_2

2. Serialization

Sloan Kelly1   and Khagendra Kumar2
(1)
Niagara Falls, ON, Canada
(2)
Katihar, Bihar, India
 

Serialization is the process of taking data in memory and reformatting it to store, to send it across the network, or to construct an object in memory. A large part of message transmission and reception processes in networking use object serialization. This chapter covers the two serialization formats used in this book: JSON and binary.

Serialization Basics

In its basic form, serialization takes the public properties or fields of an instance of a class or struct and ...

Get Unity Networking Fundamentals: Creating Multiplayer Games with Unity now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.