I use RegisterLeaderboardReset to implement it. But the leaderboard data will clear every time. Is there an interface to clear the leaderboard? Or can I only call LeaderboardRecordsList in RegisterLeaderboardReset and then loop LeaderboardRecordWrite? Thank you
Hello @hexun80149128
The leaderboard data is not cleared, all records are kept and have have different expiryTime
, to get them you’d need to use leaderboardRecordsList
with the correct expiry for the previous reset cycle. LeaderboardGet
should return the prev expiry time of the leaderboard.
Depending on how you’ve parametrized your leaderboard at creation you may want to use RegisterLeaderboardEnd
instead, which will trigger when the leaderboard stops accepting scores but before it resets. If these times coincide however the result may be the same.
Hope this clarifies.