文档

支持

Remote Config

Remote Config

Remote Config 文件

Create and deploy Remote Config files in JSON format.
阅读时间1 分钟最后更新于 1 个月前

创建

右键单击项目窗口,然后选择
Assets > Create > Remote Config
以创建 Remote Config 文件。

文件格式

文件必须符合 JSON 模式才能正确解析。

示例

以下示例包含 3 个键:
  1. String 键“name”
  2. Long 键“id”
  3. json 键“user_schema”
{ "$schema": "https://ugs-config-schemas.unity3d.com/v1/remote-config.schema.json", "entries": { "name": "example_name", "id": "10000000000", "user_schema": { "user_id_key": "user_id", "user_name_key": "user_name" } }, "types": { "id": "LONG" }}

文件部署

创建文件后,可将其部署到所选的环境。要部署文件,请转到
Window > Deployment
(2021.3+) 或
Services > Deployment
(2022+)。
打开后,Deployment 窗口将会显示所有本地 Remote Config 文件,可供您进行部署。
有关 Deployment 窗口预期工作流程的更多信息,请参阅“com.unity.services.deployment”软件包文档。