DataFormat

Specifies a data format to read and write in.

namespace Sirenix.Serialization
{
public enum DataFormat
{
Binary = 0
JSON = 1
Nodes = 2
}
}

Requirements

Namespace: Sirenix.Serialization
Assembly: Sirenix.OdinInspector
Version: 2.0.0.0

Members

Definition Description
Binary A custom packed binary format. This format is most efficient and almost allocation-free, but its serialized data is not human-readable.
JSON A JSON format compliant with the json specification found at "http://www.json.org/".

This format has rather sluggish performance and allocates frightening amounts of string garbage.
Nodes A format that does not serialize to a byte stream, but to a list of data nodes in memory which can then be serialized by Unity.

This format is highly inefficient, and is primarily used for ensuring that Unity assets are mergeable by individual values when saved in Unity's text format. This makes serialized values more robust and data recovery easier in case of issues.

This format is *not* recommended for use in builds.