PLAY SDK Documentation
v0.12.0 (Obsolete)
v0.12.0 (Obsolete)
  • 🛠️ENVIRONMENT SETUP
    • Overview
    • PLAY Sample Package
  • 🖥️SDK Integration Guides
    • Getting Started
      • Unity
        • Tech Requirements
        • Step 1 - Import packages
        • Step 2 - Import credentials
        • Step 3 - Environments
        • Step 4 - Initialization
      • Unreal
        • Tech Requirements
        • Step 1 - Import packages
        • Step 2 - Configure credentials
        • Step 3 - Environments
        • Step 4 - Initialization
    • Authentication
      • Unity
      • Unreal
    • User Profile
      • Unity
      • Unreal
    • Virtual Items
      • Unity
      • Unreal
    • Inventory
      • Unity
      • Unreal
    • Store
      • Unity
      • Unreal
    • Currency (IAP)
      • Unity
      • Unreal
    • Achievements
      • Unity
      • Unreal
    • Game Progress
      • Unity
      • Unreal
    • Leaderboards
      • Unity
      • Unreal
    • Matchmaking
      • Unity
      • Unreal
    • Wallets
      • Unity
      • Unreal
    • Analytics
      • Unity
      • Unreal
    • Notifications
      • Unity
      • Unreal
    • Module Requests
  • 🎲Game Design Guides
    • Overview
    • User Authentication
    • User Profile
    • Game (Progression + Rewards)
    • Virtual Items
    • Currency (IAP)
    • Store
    • Inventory
    • Achievements
    • NFT Purchase Flow & Wallets
    • Limited-Time Offers
    • NFT Passes
  • 📌Links
    • PLAY Whitepaper
    • PLAY Postman API Doc
    • PLAY Dev Dashboard
    • PLAY Example Repository Dev
    • PLAY Example Repository Prod
    • Report an Issue
    • Discord dev-chat
    • Telegram Community Channel
    • Social Links
Powered by GitBook
On this page

Was this helpful?

Export as PDF
  1. SDK Integration Guides
  2. Leaderboards

Unity

Unity integration

The LeaderboardModule is responsible for managing player scores and ranking players according to their scores. This module provides various functionalities such as setting player score, getting leaderboard data, fetching player entries on the leaderboard and more.

LeaderboardData
  • id (string): Unique id of the leaderboard.

  • name (string): Leaderboard name. Is used also to store the localization key for the name.

  • description (string): Leaderboard description. Is used also to store the localization key for the description.

  • invertSortOrder (bool): Sorting direction. False implies that places are sorted in descending order, while true means places are sorted in ascending order.

  • decimalOffset (int): This parameter determines how many digits of the score integer are displayed after the decimal point. The size of the decimal part. For example, with decimalOffset: 2, the number 1234 will be displayed as 12.34.

  • type (string): The leaderboard type that determines the results unit. Possible values: numeric — Number, time — Time in milliseconds.

  • autoResettable (bool): Determines whether the leaderboard should automatically reset.

  • resetEveryTimeAtCron (string): A Cron expression to specify the reset period.

  • rewardsAtReset (LeaderboardReward[]): Rewards which will be earned at the reset period.

  • requiredToJoin (JoinRequirement[]): A list of requirements that must be met when a user joins a leaderboard. Joining here means adding and setting user scores. Currently, three types are supported. Please see the JoinRequirement description for more information.

  • createdAt (long): Date and time when the leaderboard was created. This field is automatically populated by the backend.

  • updatedAt (long): Date and time when the leaderboard was last time updated. This field is automatically populated by the backend.

  • createdBy (string): User Id who created the leaderboard. This field is automatically populated by the backend.

  • updatedBy (string): User Id who last time updated the leaderboard. This field is automatically populated by the backend.

Was this helpful?

🖥️