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: 12.1   12.2   12.3   12.4   12.5   13.0   13.1   13.2   13.3   13.4    Statistic    FMM    Blog  

GameKit.SetDefaultLeaderboardIdentifier

Sets the default leaderboard for the current game.

Component Version macOS Windows Linux Server iOS SDK
GameKit 8.5 ✅ Yes ❌ No ❌ No ❌ No ✅ Yes
MBS( "GameKit.SetDefaultLeaderboardIdentifier"; leaderboardIdentifier )   More

Parameters

Parameter Description Example
leaderboardIdentifier The new default leaderboard identifier.

Result

Returns OK or error.

Description

Sets the default leaderboard for the current game.
The default leaderboard is configured in App Store Connect as part of configuring your game’s leaderboards. All players normally start with this leaderboard as the default leaderboard. Calling this method changes the default leaderboard only for the local player.

See also

This function is free to use.

Created 5th November 2018, last changed 8th November 2018


GameKit.SelectChallengeablePlayers - GameKit.SetPlayerDidChangeScriptTrigger

💬 Ask a question or report a problem