Matches

Matches

Coordinate turn-based sessions and confirm results.

Get Started Free

Matches

Coordinate turn-based sessions and confirm results.

SDKs and REST

Integrate with Unity, Godot or Unreal, or use the REST interface.

Project dashboard

Configure each feature and manage its current data in your project.

Quick Integration

Quick Integration

quickstart.dashboard.videos.matches
Video coming soon

quickstart.videoSummaries.matches

Quick Integration
Unity (C#)
using UnityEngine;
using PM.horizOn.Cloud.Manager;

public sealed class MatchesDemo : MonoBehaviour
{
    // Initialize/connect and restore the existing player in the Quickstart first.
    // Invoke explicitly. The SDK also enforces the returned polling cadence.
    public async void ReadMyMatches()
    {
        var user = UserManager.Instance.CurrentUser;
        if (user == null || !user.IsValid()) return;
        var result = await MatchesManager.Instance.GetMatches(user.UserId);
        if (!result.IsSuccess) { Debug.LogWarning(result.ErrorCode); return; }
        Debug.Log($"Ledger revision: {result.Data.revision}");
        foreach (var match in result.Data.recent)
            Debug.Log($"Match {match.id}: {match.status}");
        // Recent may include an active match after this player's forfeit.
        // Respect result.Data.pollAfterSeconds; no background poll or automatic timeout.
    }
}
// Full two-player recipe: SDK Examples/MatchesExample and MatchesSampleStore.
// ReadLedger/ReadMatch -> SaveCreateAfterLedgerReview/SaveActionAfterMatchReview.
// ApplySavedIntent sends one durable original body/revision. Unknown create is reconciled.
// Never replace a pending original with the revision from a later read.
// ReportResult uses the original finalStateRevision/result bytes/sorted winnerIds.
// Ordinary consensus is not trusted victory proof. Ranked runs use Validated Actions.

This SDK example uses develop. Check whether the required APIs exist in your installed SDK. see the quickstart

Frequently Asked Questions

Frequently Asked Questions

Ready to Integrate?

Start building with horizOn today. Free tier included.