You cannot store any UObject in a TMap by value, just as you cannot construct a UObject directly on the stack. You need to change your map definition to:
TMap< FString, UDataTable* >
and modify your code accordingly.
You cannot store any UObject in a TMap by value, just as you cannot construct a UObject directly on the stack. You need to change your map definition to:
TMap< FString, UDataTable* >
and modify your code accordingly.