Google Play Games Services with Unity3D, can we run/test game within editor?

青春壹個敷衍的年華 提交于 2020-01-05 05:52:06

问题


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

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

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


回答1:


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

Source :

See Link



来源:https://stackoverflow.com/questions/25581866/google-play-games-services-with-unity3d-can-we-run-test-game-within-editor

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!