You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Unity集成Google Play游戏服务排行榜无法显示其他玩家分数的问题求助

Unity集成Google Play游戏服务排行榜无法显示其他玩家分数的问题求助

大家好,我遇到了一个关于Unity集成Google Play游戏服务排行榜的问题,想请各位帮忙看看。

我的Unity应用在Google Play商店已经有1500次下载了,在Google Play控制台里创建了多个排行榜,并且已经在游戏里完成了集成。现在的问题是,我看不到其他玩家的分数——我查了好多次Android Logcat,确认分数提交是成功的,但排行榜里只显示我自己设备的分数。有没有人知道这是为什么呀?谢谢大家!

提交分数的代码:

public void SubmitScore(long score, string leaderboardID) {
    if (!IsAuthenticated()) {
        Debug.LogWarning("Skor gönderilemedi: kullanıcı giriş yapmamış.");
        return;
    }
    PlayGamesPlatform.Instance.ReportScore(score, leaderboardID, success => {
        Debug.Log(success ? $"Skor {score} başarıyla gönderildi" : "Skor gönderme başarısız");
    });
}

显示排行榜的代码:

public void ShowGlobalAllTimeLeaderboard(string leaderboardID, int maxResults = 25) {
    if (!IsAuthenticated()) {
        Debug.LogWarning("Leaderboard açılamadı: kullanıcı giriş yapmamış.");
        return;
    }
    PlayGamesPlatform.Instance.LoadScores(
        leaderboardID,
        LeaderboardStart.TopScores,
        maxResults,
        LeaderboardCollection.Public,
        LeaderboardTimeSpan.AllTime,
        data => {
            if (!data.Valid) {
                Debug.LogWarning("Skor yükleme başarısız: " + data.Status);
                return;
            }
            Debug.Log($"[GPGS] {data.Scores.Length} public/all-time skor yüklendi");
            PlayGamesPlatform.Instance.ShowLeaderboardUI(
                leaderboardID,
                status => Debug.Log("Leaderboard UI kapandı: " + status)
            );
        });
}

内容来源于stack exchange

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.04.07 12:08:03