DDR12 / FirebaseUnityWebGL

A Firebase C# SDK with unity's WebGL platform support.
Apache License 2.0
1 stars 0 forks source link

What is this

A C# wrapper for the Firebase Javascript sdk for unity's WebGL platform support.

Why

Because the official Unity Firebase SDK only supports Desktop, Android and iOS platforms.

This is an implementation of the Firebase Web SDK with C# and Javascript into DLLs usable by unity's runtime WebGL builds, allowing for a full advantage of all the functionality of the native sdk of other platforms while maintaining the same code structure of the unity's sdk so you're still able to build for other platforms without having to delete the WebGL DLLs.

How to use

Build the DLLs of the services you want to use in your project, (Utilities and Firebase.App) must be buit with any service you import to the unity project.

Make sure the WebGL DLLs build target is set to WebGL only, so unity editor doesn't try to compile them. The build comes with .jslib files these are the javascript bridges where the magic happens and are automatically copied to the build folder for you.