Using Firebase with Unity and WebGL

六月ゝ 毕业季﹏ 提交于 2020-07-09 05:01:06

问题


I was thinking of using Firebase remote config with my Unity based game.

I intent to release the game on Facebook with WebGL, and was wondering if there is Firebase implementation for WebGL as part of the SDK?


回答1:


Firebase-Unity SDK is only for IOS and Android Platforms. However you can implement plugin to use web API for your WebGL build.

If you would release your game on Facebook platform its better to use Parse.com. However WebGL is not supported in main SDK because its multi-threaded structure but an alternative version is available which works with WebGL.




回答2:


No, but according to Stewart Miles from Google, to do this we should

taking our C# interface and using the Firebase JS SDK from C# when building for the web rather than using the REST API or any Unity SDKs that call our public REST APIs directly

You can read more here on how to call JavaScript functions from Unity scripts.



来源:https://stackoverflow.com/questions/40531024/using-firebase-with-unity-and-webgl

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