Certain Map container calls (e.g. Find, Add) will fail to compile at packaging time if a Blueprint class containing a Map variable with a user-defined enumeration as the key type is nativized.
This is similar to the issue described in [Link Removed].
Suggested workaround: Change the key type from the UserDefinedEnum type to Byte, then fix up connections to existing Map container call nodes.
UATHelper: Packaging (Windows (64-bit)): D:\dev\UE4\Dev-Framework\Engine\Source\Runtime\Engine\Public\GeneratedCodeHelpers.h(427): error C2663: 'TMapBase<KeyType,ValueType,SetAllocator,KeyFuncs>::Find': 2 overloads have no legal conversion for 'this' pointer UATHelper: Packaging (Windows (64-bit)): with UATHelper: Packaging (Windows (64-bit)): [ UATHelper: Packaging (Windows (64-bit)): KeyType=E__NewUserDefinedEnum__pf, UATHelper: Packaging (Windows (64-bit)): ValueType=int32, UATHelper: Packaging (Windows (64-bit)): SetAllocator=FDefaultSetAllocator, UATHelper: Packaging (Windows (64-bit)): KeyFuncs=TDefaultMapHashableKeyFuncs<E__NewUserDefinedEnum__pf,int32,false> UATHelper: Packaging (Windows (64-bit)): ] UATHelper: Packaging (Windows (64-bit)): D:/dev/local/Projects/NatMapEnumKeyTest/Intermediate/Plugins/NativizedAssets/Windows/Game/Source/NativizedAssets/Private/NewBlueprint__pf1010915279.cpp(472): note: see reference to function template instantiation 'bool FCustomThunkTemplates::Map_Find<E__NewUserDefinedEnum__pf,int32,uint8,int32>(const TMap<E__NewUs erDefinedEnum__pf,int32,FDefaultSetAllocator,TDefaultMapHashableKeyFuncs<KeyType,ValueType,false>> &,const V &,W &)' being compiled UATHelper: Packaging (Windows (64-bit)): with UATHelper: Packaging (Windows (64-bit)): [ UATHelper: Packaging (Windows (64-bit)): KeyType=E__NewUserDefinedEnum__pf, UATHelper: Packaging (Windows (64-bit)): ValueType=int32, UATHelper: Packaging (Windows (64-bit)): V=uint8, UATHelper: Packaging (Windows (64-bit)): W=int32 UATHelper: Packaging (Windows (64-bit)): ]
There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-76380 in the post.