error LNK2019: unresolved external symbol for FOnlineSessionSettings::Get<class FName>(class FName,class FName &)

After playing around i found the solution for my problem…

When I used FString instead of FName for my LobbyName variable, it started compiling:

UPROPERTY(BlueprintReadOnly)
// FName LobbyName;
FString LobbyName;

I have no clue why that is, because to my knowledge, both FName and FString are value types and should work with that template function…