Serializing generic types#


The serializer can now serialize fields of generic types directly; it is no longer necessary to derive a concrete subclass from a generic type in order to serialize it.


Generic types must be a derived concrete subclass.
This means that if any type that contains a generic in its definition needs to be inherited from plainly to become serializable.


public class Base<T>
public T Value;

public class A : Base<float> { }

SerializeField] private A a; // Serializable
[SerializeField] private Base<Test> b; // Not Serializable