Publisher | Lucid_Dreams |
---|---|
File size | 21.50kB |
Number of files | 4 |
Latest version | 1.0.1 |
Latest release date | 2016-06-27 08:47:24 |
First release date | 2016-06-27 08:47:24 |
Supported Unity versions | 2018.4.2 or higher |
You can freely convert a list of bytes to any object, just like JSON/xml
The difference is that it can complete the save and read an object, and do not need to use the key to get the value of the Json
As is based on bytes to store data, take up less memory than the JSON or XML, not only can be used to store the object in the binary file, but also applies to network transmission.
Of course, you want to set the member data to the public and convert only the value type.
Currently supported types of data are: int long byte enum string object float array list dictionary
Whether it is a class or struct (like Vector2 in the Unity), or is a basic value type (int, string, List, etc.), or multiple levels of nested objects, you can meet the needs of
You can add the Test script to the scene camera, which has a detailed example code