# Remote Config 文件

> Create and deploy Remote Config files in JSON format.

## 创建##creation

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

## 文件格式##file-format

文件必须符合 [JSON 模式](https://ugs-config-schemas.unity3d.com/v1/remote-config.schema.json)才能正确解析。

### 示例##example

以下示例包含 3 个键：

1. String 键“name”
2. Long 键“id”
3. json 键“user\_schema”

```json
{
  "$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"
  }
}
```

## 文件部署##file-deployment

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