Version: 5.6
iOS App Store 和 Mac App Store
Google Play

Windows Store

Building

Please note that Unity IAP is not compatible with the IL2CPP scripting backend, which is currently experimental on Universal Windows Platform.

Unity IAP supports building with the Windows Universal 8.1 and Universal 10 SDKs. Unity IAP does not support the Windows Phone 8.1 SDK.

模拟器

Unity IAP 功能支持 Microsoft 的应用内购 (IAP) 模拟器,此模拟器允许您在发布应用程序之前在设备上测试 IAP 购买流程。

配置 Unity IAP 时,可在初始化之前启用模拟器,如下所示:

var builder = ConfigurationBuilder.Instance(StandardPurchasingModule.Instance());
builder.Configure<IMicrosoftConfiguration>().useMockBillingSystem = true;

确保在发布应用程序之前禁用模拟计费系统。

iOS App Store 和 Mac App Store
Google Play