リーダーボード

リーダーボード

あらゆるゲームエンジンに数分で組み込めるプレイヤーランキング

無料で始める

ワンコールでスコア送信

SDK メソッド 1 つでプレイヤースコアを送信。ランキング、重複排除、永続化は horizOn が処理します。

コンテキスト付きランキング

グローバルトップや特定プレイヤー周辺のエントリを取得し、順位をわかりやすく表示できます。

インフラ管理ゼロ

ストレージ、インデックス、クエリパフォーマンスはすべて horizOn が管理。データベースに触れる必要はありません。

クイック統合

クイック統合

Rhythm Masters

楽曲クリア!

あなたのスコア

12,450

Unity (C#)
// Unity C#: Leaderboard (board "weekly" created in the dashboard)
using PM.horizOn.Cloud.Manager;
using UnityEngine;

var board = LeaderboardManager.Instance;

// Submit a score for the signed in player (only kept if it beats their best)
await board.SubmitScore(15000, boardKey: "weekly");

// Top 10 (null on failure)
var top = await board.GetTop(10, boardKey: "weekly");
if (top != null)
{
    foreach (var entry in top)
        Debug.Log($"#{entry.position} {entry.username}: {entry.score}");
}

// Five entries above and below the player
var around = await board.GetAround(5, boardKey: "weekly");
REST
# REST API: Leaderboard

# Submit a score to the board "weekly" (needs the player's session token)
curl -X POST https://horizon.pm/api/v1/app/leaderboards/weekly/submit \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Authorization: Bearer SESSION_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"userId":"USER_ID","score":15000}'

# Get top 10 entries
curl -X GET "https://horizon.pm/api/v1/app/leaderboards/weekly/top?userId=USER_ID&limit=10" \
  -H "X-API-Key: YOUR_API_KEY"

# Get entries around a player
curl -X GET "https://horizon.pm/api/v1/app/leaderboards/weekly/around?userId=USER_ID&range=5" \
  -H "X-API-Key: YOUR_API_KEY"

これらの例では、Unity SDK(C#)とREST APIを使っています。GodotとUnrealでも、それぞれのSDKで同じ呼び出しができます: クイックスタートを参照

よくある質問

よくある質問

統合の準備はできましたか?

horizOn で今日からゲームバックエンドを構築しましょう。無料プラン付き。