问题
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