Remote Config 文件
Create and deploy Remote Config files in JSON format.
阅读时间1 分钟最后更新于 1 个月前
创建
右键单击项目窗口,然后选择Assets > Create > Remote Config文件格式
文件必须符合 JSON 模式才能正确解析。示例
以下示例包含 3 个键:- String 键“name”
- Long 键“id”
- 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 > DeploymentServices > Deployment打开后,Deployment 窗口将会显示所有本地 Remote Config 文件,可供您进行部署。
有关 Deployment 窗口预期工作流程的更多信息,请参阅“com.unity.services.deployment”软件包文档。