Crossplay Integration Kit
Multiplayer

Crossplay Sessions in C++

Find and join crossplay sessions from C++

Crossplay Sessions in C++

#include "Sessions/UCIKSessionSubsystem.h"

FUCIK_SessionSearch Search;
Search.MaxResults = 50;

UUCIKSessionSubsystem* Sessions = GetGameInstance()->GetSubsystem<UUCIKSessionSubsystem>();
Sessions->FindSessions(Search,
	FUCIKCallback<TArray<FUCIK_Session>>::CreateWeakLambda(this, [this](const TUCIKResult<TArray<FUCIK_Session>>& Result)
	{
		if (!Result.bOk || !Result.Value.IsSet())
		{
			return;
		}

		SetSessions(*Result.Value);
	}));

Create with CreateSession(SessionName, Settings, Callback). Join a search result with JoinSession(Session, bAutoTravel, Callback) and leave with LeaveSession(SessionName, Callback).

See Blueprint usage and Network setup.

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

On this page