How to use custom serialization in CDOs

I overloaded UObject:: Serialize, but it will not be executed when creating CDOs.