Integrate with Unity Editor
Author and deploy leaderboard configurations directly within the Unity Editor.
Read time 2 minutesLast updated 21 days ago
The Leaderboards Authoring module (installed with the Leaderboards package) allows you to optionally author and modify Leaderboards configurations directly within the Unity Editor. You can then upload leaderboards from the Unity Editor to the Dashboard by using the Deployment package.
Leaderboards configurations existing in the Unity Editor allow users to treat their source control as the single source of truth (instead of the version in the cloud), simplifying actions such as rollbacks, bisection, and other common operations. For example, the Leaderboards Authoring module facilitates tasks like keeping client configurations in sync with remote configurations.
Prerequisites
To use Leaderboards configurations in the Unity Editor, you must first install the Leaderboards SDK and link your Unity Gaming Services project to the Unity Editor.Link project
Link your Unity Gaming Services project with the Unity Editor. You can find your UGS project ID in the Unity Dashboard.- In Unity Editor, select Edit > Project Settings > Services.
- Link your project.
- If your project doesn't have a Unity project ID:
- Select Create a Unity Project ID > Organizations, then select an organization from the dropdown menu.
- Select Create project ID.
- If you have an existing Unity project ID:
- Select Use an existing Unity project ID.
- Select an organization and a project from the dropdown menus.
- Select Link project ID.
UnityEditor.CloudProjectSettings.projectIdInstall required packages
To create Leaderboards configurations within the Editor, you must install the following packages:- Deployment
- Leaderboards (2.0.0 or greater)
To install these packages and add them to your list of available packages:
- From the Unity Editor’s Package Manager window, select + (add) > Add package by name….
- Enter .
com.unity.services.deployment - Select Add.
- Repeat these steps for .
com.unity.services.leaderboards
Authoring within the Unity Editor
The Leaderboards Authoring module allows you to create, edit, and deploy Leaderboards configurations directly within the Unity Editor.Create a configuration
Follow these steps to create a Leaderboards configuration using the Leaderboards Authoring module:- In the Unity Editor, right-click in the Project window, then select Create > Services > Leaderboards configuration.
- Name the configuration. Leaderboards configurations use their file name as the identifier when uploading to the service.
- Press Enter.
Edit a configuration
To edit an existing Leaderboards configuration, double-click the configuration in the Project window. Leaderboards configurations are in.json.lb