IOverridesSerializationPolicy interface

Namespace: Sirenix.Serialization
Assembly: Sirenix.Serialization
public interface IOverridesSerializationPolicy
Indicates that an Odin-serialized Unity object provides its own serialization policy rather than using the default policy.

Note that THE VALUES RETURNED BY THIS INTERFACE WILL OVERRIDE THE PARAMETERS PASSED TO SerializeUnityObject(Object, ref SerializationData, Boolean, SerializationContext) and DeserializeUnityObject(Object, ref SerializationData, DeserializationContext).


bool OdinSerializesUnityFields { get; }
ISerializationPolicy SerializationPolicy { get; }

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.