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.
  2. Dismiss Notice

Question Copy leaderboards from a environment to another

Discussion in 'Leaderboards' started by MoisesCT, Oct 10, 2023.

  1. MoisesCT

    MoisesCT

    Joined:
    Mar 16, 2017
    Posts:
    3
    Hi, I was using the leaderboards service and I created a 'development' environment for testing.

    I created many leaderboards (10+), is there any way to copy the leaderboards created in an environment (in this case 'development') to another one.

    I could create manually those leaderboards, but I would like if there is a faster and more secure way.

    Thanks.
     
  2. GabKBelmonte

    GabKBelmonte

    Unity Technologies

    Joined:
    Dec 14, 2021
    Posts:
    49
    Hey!

    We are working on tools for automation, currently Leaderboards is supported. See this.

    This is what you have to do (give or take):
    Code (csharp):
    1.  
    2. mkdir my_lb_dir
    3. # fetch all leaderboards from the service
    4. ugs fetch my_lb_dir --reconcile -e development -s leaderboards
    5. # push all leaderboards to the new environment
    6. ugs deploy my_lb_dir  -e production
    7.  
    We'll also make these workflows available directly from a window in the editor, some more details here: https://forum.unity.com/threads/tab...ating-leaderboard-tiers.1501136/#post-9389300

    Hope this helps!
     
    IainUnity3D and MoisesCT like this.