Your next feature
User Logs
Record a relevant event for the signed-in player.
Unity

Your visible result
A test event is linked to the correct player in the dashboard.
Explore user logs1:04
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, project configuration imported and player signed in.
Needs the BASIC plan or higher.
C#
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 UserLogsDemo : MonoBehaviour
7{
8 async void Start()
9 {
10 // Setup: initialize, connect and sign in a player.
11 HorizonApp.Initialize();
12 await new HorizonServer().Connect();
13 await UserManager.Instance.SignUpAnonymous("PlayerName");
14
15 // horizOn: write log entries with a severity.
16 await UserLogManager.Instance.Info("Tutorial completed");
17 await UserLogManager.Instance.Error("Save failed", errorCode: "SAVE_001");
18 }
19}
Test your new feature.
A test event is linked to the correct player in the dashboard.
Choose the same project in the dashboard as in your game configuration.


