交易市场

交易市场

通过项目共享的交易信息买卖物品。

免费开始使用

交易市场

通过项目共享的交易信息买卖物品。

SDK 与 REST

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

项目控制台

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

快速集成

快速集成

交易市场
视频即将上线

交易原始库存物品,明确指定货币和手续费,并保护待退回的物品。

快速集成
Unity (C#)
using System.Threading.Tasks;
using UnityEngine;
using PM.horizOn.Cloud.Examples.Features;
using PM.horizOn.Cloud.Objects.Network.Responses;

public class MarketplaceDemo : MonoBehaviour
{
    // Import the SDK Examples sample. Bind its screen to the signed-in player
    // and set the stable projectId in the Inspector. Never use an Account Key.
    public MarketplaceExample screen;

    public Task<MarketplaceResult<MarketplaceListingView>> ReadListing(string listingId)
        => MarketplaceQuickstart.ReadOneListing(screen, listingId);

    // Wire only to the player's Buy confirmation after displaying ReadListing.
    public Task<bool> ConfirmPurchase(string listingId)
        => MarketplaceQuickstart.BuyReviewedListing(screen, listingId);

    // false/timeout does not prove nonexecution. Use screen.RetryPending() or
    // screen.RecoverOriginalOperation(); never replace the unresolved original.
    // The sample refreshes Inventory, Values and Marketplace before acknowledgement.
    // Its native file journal rejects WebGL writes; use a durable browser persister.
}

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

常见问题

常见问题

准备好开始集成了吗?

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