带有Unity3D的Google Play游戏服务,我们可以在编辑器中运行/测试游戏吗? [英] Google Play Games Services with Unity3D, can we run/test game within editor?

查看:227
本文介绍了带有Unity3D的Google Play游戏服务,我们可以在编辑器中运行/测试游戏吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在Unity中使用GPGS构建多人游戏.到目前为止一直在遵循本教程: https://github.com/playgameservices/play-games-plugin-for-unity/blob/master/README.md

i'm trying to build a multiplayer game using GPGS in Unity. Been following this tutorial so far: https://github.com/playgameservices/play-games-plugin-for-unity/blob/master/README.md

这是我到目前为止所做的: -在我的Google帐户中提供了游戏服务 -将我的游戏链接到游戏服务 -添加了测试人员的电子邮件 -在Unity编辑器中从GPGS for Unity的GitHub示例中加载了项目"Minimal" -配置了我的应用程序ID和程序包名称 -按照GPGS Unity github教程中的建议设置JAVA_HOME,Path变量

Here's what i've done so far: - Made a game service in my google account - linked my game to the game service - added the tester emails - loaded the project 'Minimal' from the GitHub samples of GPGS for Unity in Unity editor - configured my app id and package name - setup the JAVA_HOME, Path variables as suggested in the github tutorial of GPGS Unity

现在,当我在编辑器中单击播放"并单击身份验证"按钮时,我收到身份验证失败"消息.但是,当我为android构建项目并将apk加载到我的android设备中时,我便可以进行身份​​验证(我可以看到Google Play登录页面并从那里去).这是否意味着我们无法在使用Google Play Game Services插件Unity的统一编辑器中开发/测试游戏?还是我在这里错过了重要的事情.我真的很想从编辑器中或如果可能的话在真实设备上测试我的多人游戏.过去我曾用过Photon Pun来做多人游戏,但是这次要求是使用GPGS,所以我被困在这里.我正在使用免费版本的Unity4.5.2f1

Now when i click play in the editor and click Authenticate button, i get "authentication failed" message. But when i build the project for android and load the apk in my android device, i am able to authenticate (i can see the Google play signin page and go from there). Does this mean that we cannot develop/test a game inside the unity editor which uses the Google Play Game Services plugin for Unity? or am i missing something important here. I really would like to test my multiplayer game from within the editor or if possible on a real device. I've used Photon Pun in the past for another multiplayer but this time around the requirement is to use GPGS so i'm stuck here. I'm using the free version of Unity4.5.2f1

在此我将不胜感激!谢谢

I'd appreciate any help in this! thanks

推荐答案

否,PlayGamesServices插件未在编辑器中运行.自述文件中的所有说明均要求您构建apk或xcode构建.

No, the PlayGamesServices plugin does not run in the editor. All instructions in the readme require you to build an apk or xcode build.

来源:

请参阅链接

这篇关于带有Unity3D的Google Play游戏服务,我们可以在编辑器中运行/测试游戏吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆