GooglePlayGames.
Represents a Google Play Games leaderboard.
Summary
The class provides a way to configure and store data for a specific leaderboard. Implements Unity's generic ILeaderboard interface. 
Inheritance
Inherits from: ILeaderboard| Constructors and Destructors | |
|---|---|
| PlayGamesLeaderboard(string id)Initializes a new instance of the PlayGamesLeaderboard class.  | 
| Properties | |
|---|---|
| ScoreCount | intGets the number of scores currently loaded.  | 
| id | stringGets or sets the leaderboard ID.  | 
| loading | boolGets a value indicating whether the leaderboard scores are currently loading.  | 
| localUserScore | IScoreGets the local user's score on this leaderboard.  | 
| maxRange | uintGets the approximate number of total scores in the leaderboard.  | 
| range | RangeGets or sets the rank range for the scores to be loaded.  | 
| scores | IScore[]Gets the array of loaded scores.  | 
| timeScope | TimeScopeGets or sets the time scope for the scores to be loaded.  | 
| title | stringGets the title of the leaderboard.  | 
| userScope | UserScopeGets or sets the user scope for the scores to be loaded.  | 
| Public functions | |
|---|---|
| LoadScores(System.Action< bool > callback) | voidInitiates the loading of scores from the Google Play Games platform.  | 
| SetUserFilter(string[] userIDs) | voidSets a filter to load scores only for a specific set of users.  | 
Properties
ScoreCount
int ScoreCount
Gets the number of scores currently loaded.
The score count.
id
string id
Gets or sets the leaderboard ID.
The leaderboard ID.
loading
bool loading
Gets a value indicating whether the leaderboard scores are currently loading.
true if loading; otherwise, false.
localUserScore
IScore localUserScore
Gets the local user's score on this leaderboard.
The local user's score.
maxRange
uint maxRange
Gets the approximate number of total scores in the leaderboard.
The maximum range of scores.
range
Range range
Gets or sets the rank range for the scores to be loaded.
The rank range.
scores
IScore[] scores
Gets the array of loaded scores.
The scores.
timeScope
TimeScope timeScope
Gets or sets the time scope for the scores to be loaded.
The time scope.
title
string title
Gets the title of the leaderboard.
The title.
userScope
UserScope userScope
Gets or sets the user scope for the scores to be loaded.
The user scope.
Public functions
LoadScores
void LoadScores( System.Action< bool > callback )
Initiates the loading of scores from the Google Play Games platform.
| Details | |||
|---|---|---|---|
| Parameters | 
 | 
PlayGamesLeaderboard
PlayGamesLeaderboard( string id )
Initializes a new instance of the PlayGamesLeaderboard class.
| Details | |||
|---|---|---|---|
| Parameters | 
 | 
SetUserFilter
void SetUserFilter( string[] userIDs )
Sets a filter to load scores only for a specific set of users.
| Details | |||
|---|---|---|---|
| Parameters | 
 | 
