All Projects → rotolonico → FirebaseWebGL

rotolonico / FirebaseWebGL

Licence: other
A Unity package that makes use of the Firebase Javascript SDK to implement the basic Realtime Database functions on WebGL builds.

Programming Languages

C#
18002 projects
ShaderLab
938 projects
HLSL
714 projects
javascript
184084 projects - #8 most used programming language

FirebaseWebGL

A Unity package that makes use of the Firebase Javascript SDK to implement the basic Realtime Database functions on WebGL builds

Installation

  • Copy the FirebaseWebGL folder into your Unity project assets folder.
  • Consider also adding the RestClient, Fullserializer and Textmeshpro folders to get the project fully up and running.
  • Alternatively, you can import the latest .unitypackage from the repository releases.

Usage

  1. Call any of the basics Firebase Javascript SDK functions from the FirebaseBridge.cs class
  2. Build for WebGL
  3. Include the Firebase app configuration in the index.html file generated by Unity (you can use this tutorial here).
  4. Finally, make sure to also include the Firebase SDKs you need to use in your App (You can find a list of services here).
  5. EXTRA STEP: Earlier in 2021 Unity made some modifications to their WebGL library. The following line (this.unityInstance = unityInstance) must now also be added in your index.html, when the unityInstance is created (after the }).then((unityInstance) => { line) so that your app can properly comunicate with Unity.

Services

  • Realtime Database
  • Authentication
  • Cloud Functions
  • Storage
  • Firestore

Additional info

  • You can find a working implementaiton of this package here
  • For Storage, you'll also need to set up cors for your bucket. More info here or in the README.txt file in the Storage example in the project.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].