Manage your game settings remotely without releasing updates, allowing for dynamic adjustments and feature toggling.
Check if remote configuration is supported to manage game settings without releasing updates.
Bridge.remoteConfig.isSupported
Load configuration settings from the server to dynamically adjust game parameters based on real-time data.
private void Start()
{
var options = new Dictionary<string, object>();
switch (Bridge.platform.id)
{
case "yandex":
var clientFeatures = new object[]
{
new Dictionary<string, object>
{
{ "name", "levels" },
{ "value", "5" },
}
};
options.Add("clientFeatures", clientFeatures);
break;
}
Bridge.remoteConfig.Get(options, OnRemoteConfigGetCompleted);
}
private void OnRemoteConfigGetCompleted(bool success, Dictionary<string, string> data)
{
if (success)
{
foreach (var keyValuePair in data)
{
Debug.Log($"key: { keyValuePair.Key }, value: { keyValuePair.Value }");
}
}
}