diff --git a/Source/UnitTests/LevelAndPrefabSerializationUnitTests.cpp b/Source/UnitTests/LevelAndPrefabSerializationUnitTests.cpp index 407fd4ed..33e5b80f 100644 --- a/Source/UnitTests/LevelAndPrefabSerializationUnitTests.cpp +++ b/Source/UnitTests/LevelAndPrefabSerializationUnitTests.cpp @@ -548,6 +548,8 @@ namespace MetaType type = MetaType{ MetaType::T{}, "EntityRefTestComponent" }; type.GetProperties().Add(Props::sNoInspectTag); + type.AddField(&EntityRefTestComponent::mReferenceEntity, "mReferenceEntity"); + ReflectComponentType(type); return type; }