远程配置

远程配置

实时调整游戏设置和功能开关,无需发布新版本

免费开始使用

即时更新配置值

在 Dashboard 中修改任意字符串、数值或布尔类型的配置值,客户端下次拉取时即可获取最新数据。

告别应用商店等待

通过远程控制避免平衡性调整、活动开关或 A/B 测试参数的审核周期。

强类型键值存储

将配置存储为命名的键值对,SDK 在运行时通过强类型 Getter 读取。

快速集成

快速集成

远程配置管理

Unity (C#)
// Unity C#: Remote Config
using PM.horizOn.Cloud.Manager;
using UnityEngine;

// Every value in one request at startup (cached afterwards)
var configs = await RemoteConfigManager.Instance.GetAllConfigs();

// Typed getters with a default for a missing key
int maxPlayers = await RemoteConfigManager.Instance.GetInt("max_players", 4);
bool eventActive = await RemoteConfigManager.Instance.GetBool("holiday_event", false);
Debug.Log($"Max players: {maxPlayers}, event active: {eventActive}");
REST
# REST API: Remote Config

# Fetch all remote configs
curl -X GET https://horizon.pm/api/v1/app/remote-config/all \
  -H "X-API-Key: YOUR_API_KEY"

# Fetch a single config value by key
curl -X GET https://horizon.pm/api/v1/app/remote-config/max_players \
  -H "X-API-Key: YOUR_API_KEY"

这些示例使用 Unity SDK(C#)和 REST API。Godot 和 Unreal 在各自的 SDK 中有相同的调用: 参见快速入门

常见问题

常见问题

准备好开始集成了吗?

今天就开始使用 horizOn 构建你的游戏后端,免费套餐开箱即用。