---
metadata:
  - name: generator
    content: Diplodoc Platform v5.52.0
alternate:
  - https://yandex.com/dev/games/doc/en/sdk/construct-3/remote-config.md
  - https://yandex.com/dev/games/doc/ru/sdk/construct-3/remote-config.md
  - https://yandex.com/dev/games/doc/tr/sdk/construct-3/remote-config.md
  - https://yandex.com/dev/games/doc/zh/sdk/construct-3/remote-config.md
  - href: zh/sdk/construct-3/remote-config.md
    type: text/markdown
    title: Markdown version
  - href: ../../llms.txt
    type: text/markdown
    title: llms.txt
---
> **Documentation Index:** Fetch the complete configuration index at https://yandex.com/dev/games/doc/zh/llms.txt

# 远程配置

<!-- source: zh/_includes/script-common.md -->
<!-- source: zh/_includes/script/index-js.md -->

<!-- endsource: zh/_includes/script/index-js.md -->

<!-- source: zh/_includes/script/requirements-js.md -->

<!-- endsource: zh/_includes/script/requirements-js.md -->

<!-- source: zh/_includes/script/image-modal-js.md -->

<!-- endsource: zh/_includes/script/image-modal-js.md -->
<!-- endsource: zh/_includes/script-common.md -->

要获取标志的远程配置(Remote Config)，请使用 **Fetch remote config** 动作，并结合 **Player info is successfully fetched** 和 **Failure to fetch remote config**。我们建议在游戏启动时只请求一次标志。

要从远程配置中获取值，请使用 **Flag** 表达式。

## 本地配置 {#local}

我们建议始终在游戏代码中嵌入标志的本地配置，以防无法从服务器获取远程配置（例如，由于地铁中的网络问题）。这可以提高游戏的可用性。

为此，请使用 **Set key default value** 动作。

## 客户端参数 {#client}

要描述客户端参数，请使用 **Set client feature** 动作。这些参数将在请求远程配置时传输。

## 远程配置使用示例 {#example}

![](../../_images/construct-3/remote-config/example.webp)

---


<!-- source: zh/_includes/button-git.md -->
<a href="https://github.com/yandex-games-plugins/construct3">
  <span class="button">存储库</span>
</a>
<!-- endsource: zh/_includes/button-git.md -->
