Topics
All
MacOS
(Only)
Windows
(Only)
Linux
(Only, Not)
iOS
(Only, Not)
Components
Crossplatform Mac & Win
Server
Client
Old
Deprecated
Guides
Examples
Videos
New in version:
9.5
10.0
10.1
10.2
10.3
10.4
10.5
11.0
11.1
11.2
Statistic
FMM
Blog
GameKit.Score.SetShouldSetDefaultLeaderboard
Set whether this score should update default leaderboard.
Component |
Version |
macOS |
Windows |
Linux |
Server |
iOS SDK |
GameKit
|
8.5 |
✅ Yes
|
❌ No
|
❌ No
|
❌ No
|
✅ Yes
|
MBS( "GameKit.Score.SetShouldSetDefaultLeaderboard"; ScoreIdentifier; Value )
More
MBS(
"GameKit.Score.SetShouldSetDefaultLeaderboard"; /* Set whether this score should update default leaderboard. */
$ScoreIdentifier; /* The identifier for the score object. */
$Value) /* The new value.
Pass 1 to update default leaderboard or 0 if not.e.g. 1 */
Less
Parameters
Parameter |
Description |
Example |
ScoreIdentifier |
The identifier for the score object. |
|
Value |
The new value.
Pass 1 to update default leaderboard or 0 if not. |
1 |
Result
Returns OK or error.
Description
Set whether this score should update default leaderboard.
A Boolean value that indicates whether this score should also update the default leaderboard.
If the value of this property is true, when the score is reported to Game Center, Game Center also updates the local player’s default leaderboard to match the value stored in the leaderboardIdentifier property of the score object.
If the value of this property is false, the default leaderboard is not changed by reporting the score. The default value of this property is false.
See also
Created 5th November 2018, last changed 8th November 2018
GameKit.Score.SetContext
-
GameKit.Score.SetValue
Feedback: Report problem or ask question.