So I’m now making a simple game in order to learn online-subsystem, but now I’m stuck at this point:
Rider (I use Rider instead of VS as my IDE) said “cannot resolve symbol SEARCH_PRESENCE”, restarting Rider IDE or Unreal cannot work either.
Here’s the code:
void AMultiplayerDemoCharacter::JoinGameSession()
{
//Find game sessions
if(!OnlineSessionInterface.IsValid())
{
return;
}
OnlineSessionInterface->AddOnFindSessionsCompleteDelegate_Handle(FindSessionsCompleteDelegate);
SessionSearch = MakeShareable(new FOnlineSessionSearch());
SessionSearch->MaxSearchResults = 10000;
SessionSearch->bIsLanQuery = false;
SessionSearch->QuerySettings.Set( , true, EOnlineComparisonOp::Equals);
const ULocalPlayer* LocalPlayer = GetWorld()->GetFirstLocalPlayerFromController();
OnlineSessionInterface->FindSessions(*LocalPlayer->GetPreferredUniqueNetId(),SessionSearch.ToSharedRef());
}
So did I missed something?
Thx if someone could help me.