error : In MyBlueprintFunctionLibrary: Unrecognized type 'string'

UFUNCTION(BlueprintCallable, Category = “Huanying|A”)
static string GetData();
why did ‘string’ can not be recognized?I have include <string>

UFunction exposes function to the blueprints BUT it only supports certain unreal types. std::string is not one of those types.

Use FString instead.