首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Unity Google Play游戏插件:错误未授权

Unity Google Play游戏插件:错误未授权
EN

Stack Overflow用户
提问于 2019-02-14 14:16:49
回答 1查看 831关注 0票数 2

我正在开发一个android游戏,我正在使用一个真实的设备进行测试。这款游戏使用谷歌游戏服务。当我尝试实现游戏服务时,授权登录失败了。只有在使用EnableSavedGames()时才会出现错误。如果我不使用EnableSavedGames(),那么我可以登录。有人能帮我解决这个问题吗?

代码语言:javascript
复制
  using GooglePlayGames;
        using GooglePlayGames.BasicApi;
        using UnityEngine.SocialPlatforms;
        PlayGamesClientConfiguration config = new PlayGamesClientConfiguration.Builder()
            // enables saving game progress.
            .EnableSavedGames()
            .Build();
        PlayGamesPlatform.InitializeInstance(config);
        // recommended for debugging:
        PlayGamesPlatform.DebugLogEnabled = true;
        // Activate the Google Play Games platform
        PlayGamesPlatform.Activate();

要在代码中登录

代码语言:javascript
复制
Social.localUser.Authenticate((bool success) => {
        // handle success or failure
    });
EN

回答 1

Stack Overflow用户

发布于 2019-02-19 02:51:25

在新创建的Play Game Services项目上有一个bug。它来自谷歌方面,他们仍在努力解决这个问题。

https://github.com/playgameservices/play-games-plugin-for-unity/issues/2429

你可以通过这个链接来关注这个问题。我希望他们能快点修好它。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/54684263

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档