
Grupos
Organiza jugadores en grupos con miembros y roles.
SDK y REST
Integra Unity, Godot o Unreal, o usa la interfaz REST.
Panel del proyecto
Configura cada función y gestiona sus datos actuales en tu proyecto.
Integración rápida
Grupos
Vídeo próximamente
Gremios, clanes y equipos con roles para el proyecto seleccionado.
using UnityEngine;
using PM.horizOn.Cloud.Manager;
public sealed class GroupsDemo : MonoBehaviour
{
// Initialize/connect once and restore the existing player in the Quickstart first.
// Invoke from a player action; no background refresh or membership mutation.
public async void ReadMyGroups()
{
var user = UserManager.Instance.CurrentUser;
if (user == null || !user.IsValid()) return;
var result = await GroupsManager.Instance.GetGroups(user.UserId);
if (!result.IsSuccess) { Debug.LogWarning(result.ErrorCode); return; }
Debug.Log($"Player revision: {result.Data.revision}");
foreach (var group in result.Data.groups)
Debug.Log($"Group {group.id}: {group.myRole}, revision {group.revision}");
// result.Data.limits contains all current limits; existing groups may exceed them.
// GetMembers(userId, groupId, afterUserId: null, limit: 1) reads one page.
// Keep its revision and nextAfterUserId. A changed revision requires a restart.
// Pending createdAt may be absent/null; it does not mean the Unix epoch.
}
}
// For writes use the SDK GroupsExample and its durable GroupsSampleStore.
// Preserve the exact project/player, body, expected revision and pending requestId.
// Unknown create: read/reconcile explicitly; never create with a replacement revision.Este ejemplo del SDK usa develop. Comprueba si las API necesarias están disponibles en el SDK instalado. consulta el inicio rápido
Preguntas frecuentes
¿Listo para integrar?
Empiece a construir con horizOn hoy. Nivel gratuito incluido.
