Leaderboard

Saves the scores from your Lens and shows them in a ranked list. You can compare with friends and with people around the world.

Games & Interactivity

Game engines, physics, quizzes, leaderboards, and the UI controls that tie it together.

Made with this block

Inputs

leaderboardNamestring

The title of the leaderboard

scoreLifetimeOptionint

The score reset interval represented as an integer. Do not change this unless the user specifically requests it. 0 - Day 1 - Week 2 - Month 3 - Year

Functions

submitScorevoid

Submits the score from a game experience to the leaderboard component. You must use a controller script to submit the score from the lens to the leaderboard component.

showvoid

Shows the leaderboard at the end of an interactive experience.

hidevoid

Hides the leaderboard. Only use if a user specifically requests it as part of the experience.