unity In App Purchasing 内购插件

如题,Google Play游戏需要加入内购功能,记录一下遇到的坑。

1、首先打开unity Gaming Services后台的 In-App Purchasing,

打开之后它会自动导入IAP插件,它是根据你的unity版本自动选择的,无需升级。

2、导入之后会多出一个Services页签,它可以配置你的商品信息和Google后台Key,点击Receipt把Google后台的key复制进去即可。

3、Google后台点击创收设置里面可以看到你的key

4、unity后台也需要绑定Google的key

至此unity和Google后台就已经建立了绑定关系。

后续API基本上都是一样的,没有什么特殊的地方,而且IAP里面也有对应的DEMO,ctrl+c、ctrl+v就可以实现。

https://docs.unity3d.com/Packages/[email protected]/manual/index.html

猜你喜欢

转载自blog.csdn.net/u013748096/article/details/129061045