ILeaderboard

interface in UnityEngine.SocialPlatforms

Switch to Manual

Description

排行榜包含特定游戏中所有玩家的得分。

Each game can have multiple leaderboards with different scores. A leaderboard object can be customized to perform a particular query. The leaderboard ID defines which leaderboard is being queried and there are filters to narrow down the results, UserScope, TimeScope, Range and SetUserFilter. Use Social.CreateLeaderboard to create an instance of this object.

Variables

id此排行榜的唯一标识符。
loading此排行榜正在加载得分。
localUserScore已登录用户的排行榜得分。
maxRange排行榜包含的总得分。
range此排行榜返回的等级范围。
scores查询返回的排行榜得分。
timeScope此排行榜搜索的时间段/范围。
title此排行榜的可读名称。
userScope此排行榜搜索的用户范围。

Public Functions

LoadScores根据此排行榜上设置的过滤器加载得分。
SetUserFilter仅搜索这些用户 ID。