Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(+1)

how do i get the lowest rank in my leaderboard so i can only load my scene if my score is greater the the lowest rank otherwise it bypasses it?

(+1)

Something along the lines of this...

void GetAllEntries() {
  Leaderboards.YourLeaderboard.GetEntries(
    isAscending: true,             
    callback: OnEntriesLoaded(is passed a list of "Entry")
    errorCallback: OnError(is passed a string with error)
  );
}
void OnEntriesLoaded(Entry[] entries) {
  if (yourScore > entries[0]) {
    LoadScene();
  }
}
void OnError(string error) {
  Debug.Log(error);
}