Abstract
Protected
constructorReadonly
nameThe name of the leaderboard.
Readonly
orderingHow the leaderboard should be ordered.
Readonly
ttlHow long entries on the leaderboard should last in seconds. Can be between 0-2 years. Setting 0
will result in default ttl which is 1 year. You must include this parameter when creating a leaderboard.
Get information about the leaderboard, such as who is on it.
Optional
currentUserInfo: UserRecordReturns true if this object is the same as other
. Useful for checking if two references point to the same thing.
Submit a score to the leaderboard.
A leaderboard which can contain scores and information about participating users. Accessible through the
LeaderboardModule
asset.Example