【问题标题】:PlayGamesPlatform could not be found in IOS platformIOS平台找不到PlayGamesPlatform
【发布时间】:2021-04-28 08:53:41
【问题描述】:

我目前在 google play 商店中发布了一个可用的 android 游戏,其中包含应用内购买和成就。我想为IOS制作一个新版本。但是当换平台到IOS时,PlayGamesPlatform could not be found报错。我是否必须删除与 google play 相关的所有脚本,或者有没有办法让它们同时适用于 android 和 IOS 使用条件?我还尝试在脚本定义符号中添加NO_GPGS,但仍然显示错误。

【问题讨论】:

    标签: android ios unity3d google-play-games


    【解决方案1】:

    您可以使用 Unity 平台相关编译器 Platform dependent compilation 。使用 Google Play 商店 IAP 时,使用 if UNITY_ANDROID 然后在里面添加 Play 商店代码。对于 IOS,请使用 UNITY_IOS。

    【讨论】:

    • Google Play Game Services Plugin For UNITY "[注意:此版本的插件不再支持 iOS。适用于 iOS 的 Google Play 游戏服务已弃用,并且不太可能按预期运行。请勿使用 Google Play 游戏服务适用于新应用中的 iOS。有关更多详细信息,请参阅弃用公告博客文章。]"
    猜你喜欢
    • 1970-01-01
    • 2019-11-20
    • 1970-01-01
    • 1970-01-01
    • 2022-11-29
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多