Last updated
Last updated
Before submitting scores or retrieving data, you will need to initialize a leaderboard. To do this, use the code below:
The method AsyncInitializeLeaderboard() is a Coroutine because calls to the Leaderboard API are asynchronous
Warning! If the leaderboard "My Awesome Leaderboard" does not exist, it will be created in Steamworks. This is especially useful when you don't want to manually create leaderboards in Steamworks website
Cool! Once we have the leaderboard in our hands, we can submit scores or retrieve data.