Game ideas & features

Your next feature

Remote Config

Update balancing values while your game keeps running.

Unity
Illustration of Remote Config
Your visible result

An updated dashboard value is used when fetched again in the game.

Create a remote config value1:33
Open video separately ↗

Prepare the same project

  1. Choose the same project in the dashboard as in your game configuration.

    Remote Config →
  2. Create or reuse these test entries in the dashboard form. These are example values, not current project data.

    Config Key
    max_lives
    Config Value
    3
  3. Save, reload and verify the entries before running the example. Preserve unrelated definitions.

Build this feature

You can preview the guide. Running it requires an active project key. Prepare project

SDK installed and project configuration imported.

Save the C# file, attach it to a GameObject and enter Play. Check Console.

C#
Assets/Scripts/RemoteConfigDemo.cs
horizOn callSetup
1using UnityEngine;
2using PM.horizOn.Cloud.Core;
3using PM.horizOn.Cloud.Manager;
4​
5// Attach this script to a GameObject in your first scene.
6public class RemoteConfigDemo : MonoBehaviour
7{
8 async void Start()
9 {
10 // Setup: initialize and connect.
11 HorizonApp.Initialize();
12 await new HorizonServer().Connect();
13​
14 // horizOn: read values from the remote config.
15 // Bypass the cache so a dashboard edit is visible on the next run.
16 var configs = await RemoteConfigManager.Instance.GetAllConfigs(useCache: false);
17 if (configs == null) { Debug.LogWarning("Remote config request failed"); return; }
18 foreach (var config in configs) Debug.Log($"{config.Key}={config.Value}");
19 }
20}
Open the complete SDK sample ↗

Test your new feature.

An updated dashboard value is used when fetched again in the game.

Choose the same project in the dashboard as in your game configuration.

Endpoints
  • GET/remote-config/{configKey}
  • GET/remote-config/all
All endpoints in the API reference
Illustration of Leaderboards
Our suggestion for your next step

Give every round a high score.

Save the score after a round and show who's ahead. Keep using your connection and player session.

Tutorial video

Live ops and contentUnity7:54
Open video separately ↗