Crossplay Integration Kit
Multiplayer

Crossplay Friends in C++

Query the merged friends list from C++

Crossplay Friends in C++

#include "Social/UCIKSocialSubsystem.h"

UUCIKSocialSubsystem* Social = GetGameInstance()->GetSubsystem<UUCIKSocialSubsystem>();
Social->QueryFriends(true,
	FUCIKCallback<FUCIK_GetFriendsResult>::CreateWeakLambda(this, [this](const TUCIKResult<FUCIK_GetFriendsResult>& Result)
	{
		if (!Result.bOk || !Result.Value.IsSet())
		{
			return;
		}

		SetFriends(Result.Value->Friends);
	}));

The boolean selects whether offline friends are included. Inspect each friend's Handles map to choose an invite target.

See Blueprint usage.

Use the unified subsystem first. Use a kit-specific social interface only for that platform's exact option set.

On this page