The problem originates when I put: TArray < FOnlineSessionSearchResult> &fOnlineSessionSearchResult
I get compile time error: “Unable to find ‘class’, ‘delegate’, ‘enum’, or ‘struct’ with name ‘FOnlineSessionSearchResult’ [UnrealHeaderTool Error]”
You fix it by not trying to use the FOnlineSessionSearchResult in Blueprint. That structure is not a USTRUCT so it’s not exposed to reflection so it can’t be used in Blueprint.
You could write your own version that’s blueprint accessible and convert between them, but it’s probably easier to just stay in C++.