成就

成就

解锁成就后立即发放奖励。

免费开始使用

成就

解锁成就后立即发放奖励。

SDK 与 REST

与 Unity、Godot 或 Unreal 集成,或使用 REST 接口。

项目控制台

在项目中配置各项功能并管理当前数据。

快速集成

快速集成

成就
视频即将上线

每位玩家每个键只解锁一次。手动规则信任游戏;统计阈值在同一受影响的上报事务内评估。

快速集成
Unity (C#)
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.

这些示例使用 Unity SDK(C#)和 REST API。Godot 和 Unreal 在各自的 SDK 中有相同的调用: 参见快速入门

常见问题

常见问题

准备好开始集成了吗?

今天就开始使用 horizOn 构建你的游戏后端,免费套餐开箱即用。