Version 2.1.0.0

SerializationConfig class

Namespace: Sirenix.Serialization
Assembly: Sirenix.Serialization
public class SerializationConfig
Defines the configuration during serialization and deserialization. This class is thread-safe.
Inheritance
  • System.Object
  • SerializationConfig

Constructors

SerializationConfig()
Initializes a new instance of the SerializationConfig class.
public SerializationConfig()

Properties

DebugContext
Gets or sets the debug context. This value is never null; if set to null, a new default instance of DebugContext will be created upon the next get.
public DebugContext DebugContext { get; set; }
SerializationPolicy
Gets or sets the serialization policy. This value is never null; if set to null, it will default to Unity.
public ISerializationPolicy SerializationPolicy { get; set; }

Methods

ResetToDefault()
Resets the configuration to a default configuration, as if the constructor had just been called.
public void ResetToDefault()

This website is brand new and built with the Odin 2.1 beta in mind. This means you might discover some features such as attribute expressions that are only available in the beta.

You can download the 2.1 beta from here and read the patch-notes here.