Game ideas & features

Your next feature

Localization

Display a test string in German and English.

Unity
Your visible result

A test string appears in both selected languages.

Create a localization key0:36

Existing dashboard tutorial. It shows the previous design; the guide follows the current workflow.

Open video separately ↗

Build this feature

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

SDK installed and project configuration imported.

C#
Assets/Scripts/LocalizationDemo.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 LocalizationDemo : MonoBehaviour
7{
8 async void Start()
9 {
10 // Setup: initialize and connect.
11 HorizonApp.Initialize();
12 await new HorizonServer().Connect();
13​
14 // horizOn: pick the language and read translated texts.
15 // Set the active language (persists for the session)
16 HorizonSDK.Localization.SetLanguage("de");
17​
18 // Fetch a single localized string by key
19 var play = await HorizonSDK.Localization.GetLocalization("menu.play");
20​
21 // Fetch every localized string for a language at once (best at startup)
22 var all = await HorizonSDK.Localization.GetAllLocalizations("de");
23 }
24}

Test your new feature.

A test string appears in both selected languages.

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

Endpoints
  • GET/localization/{key}
  • GET/localization/all
All endpoints in the API reference
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.