文档

​
​

Development

User Acquisition

Monetization

工业

Leaderboards

Unity SDK

Admin API

Client API

Open Unity Dashboard

Leaderboards

此页面不支持所选语言。
LiveOps
​
​
Leaderboards
  • Overview
  • Get started
  • Concepts
    • Sort order
    • Update strategies
    • Tiers
    • Buckets
    • Resets
    • Archives
    • Metadata
    • Leaderboard assets
  • Tutorials
  • Reference
  • Privacy and consent
  1. Leaderboards

Leaderboard assets

Create and manage leaderboard configuration files in the Unity Editor.
阅读时间2 分钟
最后更新于 8 个月前

Use leaderboard configuration assets to manage leaderboard configurations in the Unity Editor. You can deploy these configurations to the Unity Dashboard using the Deployment package.

Prerequisites

To use leaderboard assets, you must install the Deployment package (
com.unity.services.deployment
).

Create leaderboard assets

To create a leaderboard asset:
  1. In the Unity Editor, right-click the Project window and select Create > Services > Leaderboard Configuration.
  2. Define the file format for your leaderboard configuration asset.

File format

Leaderboard configuration files must respect this JSON schema. The default leaderboard configuration file contains the
$schema
field to enable IntelliSense in IDEs.

Example

The following example contains these keys:
  • A string key
    Name
  • A string enum key
    SortOrder
  • A string enum key
    UpdateType
  • A JSON key
    ResetConfig
  • A JSON key
    TieringConfig
注意
For recurring leaderboard resets, the first reset occurs on the date specified in the
Start
key. After this, the leaderboard resets according to the schedule specified in the
Schedule
key.
{ "$schema": "https://ugs-config-schemas.unity3d.com/v1/leaderboards.schema.json", "Name": "leaderboard_config", "SortOrder": "asc", "UpdateType": "keepBest", "ResetConfig": { "Start": "2023-10-21T00:00:00-04:00", "Schedule": "0 12 1 * *" }, "TieringConfig": { "Strategy": "score", "Tiers": [ { "Id": "Gold", "Cutoff": 200.0 }, { "Id": "Silver", "Cutoff": 100.0 }, { "Id": "Bronze" } ] }}

Deploy files

When you've created your leaderboard configuration files, you can deploy them to your chosen environment.
To deploy a file:
  1. In the Unity Editor, select Services > Deployment. For Unity Versions earlier than 2022, select Window > Deployment. The Deployment window displays your local leaderboard configuration files.
  2. Select your chosen leaderboard configuration files and select Deploy Selected.
You can now edit your leaderboard configuration in the Unity Dashboard.
For more information on working with the Deployment window, refer to Deployment package.

Copyright © 2026 Unity Technologies
法律信息隐私政策CookiesDocumentation Terms of Use请勿出售或分享我的个人信息您的隐私选择(Cookie 设置)

“Unity”、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属公司在美国和其他地方的商标或注册商标(此处查看更多信息)。其他名称或品牌是其各自所有者的商标。

为方便起见,一些页面是机器翻译的,可能包含不准确的内容。如有信息不一致的情况,以英文版本为准。

  • 在本页上
    • Prerequisites

    • Create leaderboard assets

    • File format

      • Example

    • Deploy files


报告此页面的问题