Version 3.3.1.2

UnityPolymorphicSerializationBackend class

Namespace: Sirenix.OdinInspector.Editor
Assembly: Sirenix.OdinInspector.Editor
public class UnityPolymorphicSerializationBackend : SerializationBackend
The property is serialized by Unity's polymorphic serialization backend via the [SerializeReference] attribute. Polymorphism, null values and cyclical references are supported.
Inheritance

Constructors

UnityPolymorphicSerializationBackend()
public UnityPolymorphicSerializationBackend()

Fields

SerializeReferenceAttribute
public static readonly Type SerializeReferenceAttribute

Properties

IsUnity
public override bool IsUnity { get; }
SupportsCyclicReferences
public override bool SupportsCyclicReferences { get; }
SupportsGenerics
public override bool SupportsGenerics { get; }
SupportsPolymorphism
public override bool SupportsPolymorphism { get; }

Methods

CanSerializeMember(MemberInfo)
public override bool CanSerializeMember(MemberInfo member)
Parameters
System.Reflection.MemberInfo member

Returns
System.Boolean

CanSerializeType(Type)
public override bool CanSerializeType(Type type)
Parameters
System.Type type

Returns
System.Boolean

ToString()
public override string ToString()
Returns
System.String