Hi, sorry noob unreal c++ question but I trying to get my own blueprint function from c++ return an array and a Boolean but I can get only one value on return. I read somewhere that I could use a struct as return value but my question is why the following code :
(header file)
...
UFUNCTION(BlueprintPure, Category = "file")
static bool FileLoadStringArray(FString FileNameA, TArray<FString>& SaveTextA);
(cpp file)
...
bool UMyBlueprintFunctionLibrary::FileLoadStringArray(FString FileNameA, TArray<FString>& StringArrayResult)
{
return FFileHelper::LoadFileToStringArray(StringArrayResult, *(FPaths::GameDir() + FileNameA));
}
return this:
I have been checking the source code and it is not using any struct but still is returning a boolean and an array.