Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.

Question How can I add some call back on leaderboard reset

Discussion in 'Leaderboards' started by aliwebconsultant, Aug 22, 2023.

  1. aliwebconsultant

    aliwebconsultant

    Joined:
    Sep 8, 2021
    Posts:
    37
    I created a leaderboard and setup to reset daily . But I also want to give top player rewards before resetting leaderboard. So what is the solution for it and how can I achieve it.
     
    restush96 likes this.
  2. MaximeDelecourt

    MaximeDelecourt

    Unity Technologies

    Joined:
    Oct 21, 2021
    Posts:
    11
    Hi!
    It is currently not possible to automate what you describe. However, as you can see in our roadmap (Cloud Code tab), we plan to release a trigger system to allow you to do it through Cloud Code.

    The current possible solution would be to "manually" run a cloud code script through a Service Account before every reset.
     
    GabKBelmonte likes this.