
Obiettivi
Sblocca obiettivi e assegna subito le ricompense.
SDK e REST
Integra Unity, Godot o Unreal oppure usa l’interfaccia REST.
Dashboard del progetto
Configura ogni funzionalità e gestisci i dati attuali nel tuo progetto.
Integrazione rapida
Obiettivi
Video in arrivo
Ogni chiave si sblocca una volta per giocatore. Il modo manuale si fida del gioco; le soglie sono valutate nella stessa transazione interessata.
using UnityEngine;
using System.Linq;
using PM.horizOn.Cloud.Manager;
var userId = UserManager.Instance.CurrentUser.UserId;
var manager = AchievementsManager.Instance;
var loaded = await manager.GetAchievements(userId);
if (!loaded.IsSuccess) { Debug.LogWarning(loaded.ErrorCode); return; }
foreach (var progress in loaded.Data.progress)
Debug.Log(progress.key + ": " + progress.rewardState);
// Configure a manual first_steps definition, then call this on the matching game action.
var unlocked = await manager.Unlock(userId, "first_steps");
if (!unlocked.IsSuccess) { Debug.LogWarning(unlocked.ErrorCode); return; }
// Repeat the same key after timeout; never create a replacement reward identity.
// rewardState is complete, unlockedAt is null, and deliveryResults is empty.
// Values were credited atomically. Read PlayerValues again when showing the balance.
// No Inbox claim or local value addition. Refresh achievements after statistics updates.Questi esempi usano l'SDK per Unity (C#) e la REST API. Godot e Unreal hanno le stesse chiamate nei loro SDK: vedi la quickstart
Domande frequenti
Pronto per l'integrazione?
Inizi a costruire con horizOn oggi stesso. Tier gratuito incluso.
