Version: 2020.1
Unity IAP
Configurando la Apple App Store y la Mac App Store

Configurando el Unity IAP

Once you have set up your project for Unity Services, you can enable the Unity IAP service. To enable Unity IAP in your project:

  1. In the Unity Editor, open the Services window (Window > General > Services), and click In-App Purchasing.
    Selecting In-App Purchasing from the Services window.
  2. In the In-App Purchasing section of the Project Settings menu, click the OFF button to enable the service.
Enabling the IAP service.
Enabling the IAP service.

Note: Enabling Unity IAP also enables Unity Analytics in your project.

Unity will automatically import the latest verified In-App Purchasing package. If you’ve already imported a version of the package, you can open the Package Manager from this menu to update or modify your previous installation.

Managing the IAP package version.
Managing the IAP package version.

Click Import to import Unity’s IAP’s store package Asset to access app store functionality on the following platforms:

Importing the IAP store package Asset.
Importing the IAP store package Asset.

The Unity IAP Installer will take you through the Asset package import process. This adds a new folder Assets/Plugins to your project, containing the Unity Purchasing assets required to use Unity IAP. For more information, see documentation on store guides.

Common Unity IAP integration compiler errors

Los siguientes mensajes de error indican que Unity IAP está desactivado en la ventana de Unity Cloud Services, o que Unity se ha desconectado de Internet:

  • CS0246
  • System.Reflection.ReflectionTypeLoadException
  • UnityPurchasing/Bin/Stores.dll
  • UnityEngine.Purchasing

To resolve these errors:

  1. Reload the Services window by closing, then reopening it. Once reloaded, ensure that the Unity IAP service is enabled.
  2. If this doesn’t work, try disconnecting and reconnecting to the Internet, then sign back into Unity Services and re-enable Unity IAP.

Note: You must have an “Owner” or “Manager” role for the project’s registered Organization to enable the Unity IAP Service.

Unity IAP
Configurando la Apple App Store y la Mac App Store
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961