UNITY IAP接入

接入Unity自带IAP时,按照官方文档一步步import Unity purchase包。依然会发现两个错误:

  1. The name `StandardPurchasingModule' does not exist in the current context。
  2. The type or namespace name `IAppleExtensions' could not be found. Are you missing an assembly reference?

解决办法是:Unity目录下 Assets ->Import Package ->Custom Package,选择Assets/Plugins/UnityPurchasing目录下的UnityChannel.unitypackage和UnityIAP.unitypackage。问题解决。


UNITY IAP接入_第1张图片
image.png

你可能感兴趣的:(UNITY IAP接入)