
유연한 데이터 형식
세이브 데이터는 일반 문자열이므로 JSON, MessagePack, 커스텀 형식 등 스키마 제약 없이 어떤 구조든 직렬화할 수 있습니다.
즉시 크로스 디바이스 동기화
플레이어가 horizOn 계정으로 인증하면 최신 세이브가 어떤 기기에서든 즉시 이용 가능합니다.
플레이어 리텐션 향상
진행 상황이 안전하게 저장된다는 것을 아는 플레이어는 기기 변경이나 재설치 후에도 훨씬 높은 확률로 돌아옵니다.
빠른 통합
Puzzle Quest
레벨 47
Progress73%
점수: 128,450
플레이 시간: 12시간 34분
// Unity C# - Cloud Saves
using HorizOn;
var horizon = new HorizonClient("YOUR_API_KEY");
// Save player data to the cloud
var saveData = JsonUtility.ToJson(new PlayerSave {
Level = 42,
Gold = 1500,
Checkpoint = "world_3_boss"
});
await horizon.CloudSaves.Save(userId, saveData);
// Load player data from the cloud
var loaded = await horizon.CloudSaves.Load(userId);
var playerSave = JsonUtility.FromJson<PlayerSave>(loaded.Data);
Debug.Log($"Loaded level: {playerSave.Level}");# REST API - Cloud Saves
# Save player data
curl -X POST https://eu.horizon.pm/api/v1/app/cloud-save/save \
-H "X-API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"userId":"USER_ID","saveData":"{\"level\":42,\"gold\":1500,\"checkpoint\":\"world_3_boss\"}"}'
# Load player data
curl -X POST https://eu.horizon.pm/api/v1/app/cloud-save/load \
-H "X-API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"userId":"USER_ID"}'