Declaration


public static void CreateOrGetLeaderboard(string boardId, LeaderboardType boardType)

Parameters


string boardId The id of the leaderboard to find.
LeaderboardType boardType The type of leaderboard to make.

Description


Creates or get an existing leaderboard with the entered id if it doesn’t exist already.

Example


private void OnEnable()
{
		var board = LeaderboardManager.CreateOrGetLeaderboard("MyLeaderboard", LeaderboardType.Score);
}