# How to add serialized data to engine class in a compatible way? 

**URL:** <https://forums.unrealengine.com/t/how-to-add-serialized-data-to-engine-class-in-a-compatible-way/2349146>\
**Category:** Programming & Scripting\
**Tags:** serialization, unreal-engine, question, CPP\
**Created:** [February 21, 2025, 6:57pm UTC](https://forums.unrealengine.com/t/how-to-add-serialized-data-to-engine-class-in-a-compatible-way/2349146 "2025-02-21T18:57:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Filippo.Banno](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Filippo.Banno](https://forums.unrealengine.com/u/Filippo.Banno)\
**Post date:** [February 21, 2025, 6:57pm UTC](https://forums.unrealengine.com/t/how-to-add-serialized-data-to-engine-class-in-a-compatible-way/2349146/1 "2025-02-21T18:57:42Z")

</div>

I have added custom data values to UPrimitiveComponent that I’d like to serialize, but that (for reasons long to explain) I cannot add to the class as UPROPERTY fields. I have tried to serialize them by customizing the UPrimitiveComponent::Serialize(FArchive&) method along these lines:

```auto
Ar.UsingCustomVersion(FMyCustomVersion::GUID);
if (Ar.IsLoading() && Ar.CustomVer(FMyCustomVersion::GUID) >= FMyCustomVersion::AddedCustomData)
{
    Ar << MyCustomData;
}

```

The problem with this is that any assets containing UPrimitiveComponents that I save with my custom version of the editor are not loadable by the original Unreal Editor (I get “Package […] uses an unknown custom version and cannot be loaded for the AssetRegistry”). If I had been using UPROPERTY, the original Unreal Editor would have been able to skip the unrecognized properties and load the asset.

Is there a way I can serialize added custom data in an engine class, in a way that the assets are loadable by the original editor, and without using UPROPERTY?
