Crossplay Integration Kit
Online Services

Crossplay Leaderboards in C++

Use unified leaderboards from C++

Crossplay Leaderboards in C++

#include "Progression/UCIKProgressionSubsystem.h"

UUCIKProgressionSubsystem* Progression = GetGameInstance()->GetSubsystem<UUCIKProgressionSubsystem>();
Progression->ReadLeaderboard(TEXT("WINS"), 1, 25,
	FUCIKCallback<TArray<FUCIK_LeaderboardEntry>>::CreateWeakLambda(this,
		[this](const TUCIKResult<TArray<FUCIK_LeaderboardEntry>>& Result)
		{
			if (Result.bOk && Result.Value.IsSet())
			{
				ShowLeaderboard(Result.Value.GetValue());
			}
		}));

WriteLeaderboard returns a backend-to-success map. A write succeeds overall when at least one capable backend succeeds.

See Blueprint usage.

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

On this page