Skip to content

Tools for calling Firebase Firestore REST API with UnityWebRequest. 🔥

Notifications You must be signed in to change notification settings

GimChuang/com.gm.unity-firebase-tool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Unity Firebase Tool 🔥

Tools for calling Firebase Firestore REST API with UnityWebRequest.

Upadtes💥 OK so the official Firebase Unity SDK seems to finally support Firestore (beta). You may want to check it out.


I started this project because I need to use Firestore as my database but the official Firebase Unity SDK only supports Realtime Database. This tool currently provides very basic functions to create a document and retrieve a specific document or all documents in a collection. The functions are just calling Firestore REST API with UnityWebRequest internally.

How to Install with Unity's Package Manager

In the dependencies section of your 'manifest.json', add

"com.gm.unity-firebase-tool": "https://github.com/GimChuang/com.gm.unity-firebase-tool.git"

(don't forget to add a comma if you need one)

Note

You'll need to add a Resources folder, a Resources/Secret folder, and a FSSecret.json file to run the test scenes.

Assets
  ├ Resources
  | ├ Secret
  | | ├ FSSecret.json

And the FSSecret.json should be like

{
	"baseUrl": "https://firestore.googleapis.com/v1/projects/<your-firebase-project-id>/databases/(default)/documents"
}

About

Tools for calling Firebase Firestore REST API with UnityWebRequest. 🔥

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages