Game ideas & features

Your next feature

News

Show published news in your game.

Unity
Illustration of News
Your visible result

A published test news item is visible in the game.

Publish a news post2:18
Open video separately ↗

Prepare the same project

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

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

    Title
    en: Quickstart news
    Message
    en: Hello from horizOn
    Publication status
    published
    Release date and time
    2026-01-01T00:00:00Z
  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/NewsDemo.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 NewsDemo : MonoBehaviour
7{
8 async void Start()
9 {
10 // Setup: initialize and connect.
11 HorizonApp.Initialize();
12 await new HorizonServer().Connect();
13​
14 // horizOn: load the latest news.
15 var news = await NewsManager.Instance.LoadNews(limit: 10);
16 foreach (var item in news)
17 {
18 Debug.Log($"{item.title}: {item.message}");
19 }
20 }
21}
Open the complete SDK sample ↗

Test your new feature.

A published test news item is visible in the game.

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

Endpoints
  • GET/news
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.