I’m trying to register a callback for when the login process complete using the OnlineIdentity interface. It seems the AddOnLoginCompleteDelegate_Handle function should do the job.
However, the documentation barely explains anything, an approach that unfortunately is very common in UE4:
I mean, how do I call it? A one line example or explanation seems very basic, but the documentation has nothing.
Using Google, I almost found a way to do that:
IOnlineIdentityPtr IdentityInterface = IOnlineSubsystem::Get()->GetIdentityInterface(); IdentityInterface->AddOnLoginCompleteDelegate_Handle(0, FOnLoginCompleteDelegate::CreateUObject(this, &ALeaderboardsManager::OnLogin));
But I think this approach doesn’t work with UE 4.27 anymore, since CreateUObject seems to not exist (a build error is raised). Anyway, any help would be appreciated.