Hi guys,
I am using the UField::GetMetaDataText
in my project on UFloatProperties, UIntProperties and some more. When I compile and play in editor everything works fine. When I try to package my game for Windows (I tried 64 and 32 bit) I get these errors for every call of GetMetaDataText
, GetFLOATMetaData
, GetINTMetaData
, GetBoolMetaData
and GetMetaData
:
UATHelper: Packaging (Windows (32-bit)): UnrealBuildTool: C:\Workspaces\Unreal Engine 4\TheSpaceGame\Source\TheSpaceGame\ModuleControlPanel.cpp(60): error C2039: "GetMetaDataText": Ist kein Element von "UFloatProperty"
UATHelper: Packaging (Windows (32-bit)): UnrealBuildTool: c:\program files (x86)\epic games\ue_4.16\engine\source\runtime\coreuobject\public\UObject/UnrealType.h(1648): note: Siehe Deklaration von "UFloatProperty"
Translation: It just says that GetMetaDataText
is not a member of UFloatProperty
, and refers to the header of UFloatProperty
.
GetMetaDataText
is a member of UField
which is a base-class of UFloatProperty
, so there should not be a problem there. This only happens in packaging, a normal compile works fine. Are these methods somehow not available in a packaged game? I rely on them for various functionality in my game and it would be a substantial amount of work to replace them. Or is there something about the localized text (since thats what GetMetaDataText
returns) that I need to have in a packaged game and not in the editor?
Please Help!
kind regards, Simon