Multiplayer
Crossplay Invites in C++
Send invites and open a backend invite overlay from C++
Crossplay Invites in C++
#include "Lobbies/UCIKLobbySubsystem.h"
UUCIKLobbySubsystem* Lobbies = GetGameInstance()->GetSubsystem<UUCIKLobbySubsystem>();
Lobbies->SendInvite(Target, TEXT("Party"), EUCIK_InvitePriority::Auto,
FUCIKCallback<TMap<FBetideProviderId, bool>>::CreateWeakLambda(
this, [this](const TUCIKResult<TMap<FBetideProviderId, bool>>& Result)
{
if (Result.bOk && Result.Value.IsSet())
{
ShowInviteResults(*Result.Value);
}
}));To open an available native overlay, call ShowInviteUI(LobbyName, FUCIKCallback<bool>).
See Blueprint usage and Events.
Use the unified subsystem first. Use a kit-specific invite interface only for that platform's exact option set.