An open API service indexing awesome lists of open source software.

https://github.com/gimchuang/com.gm.unity-firebase-tool

Tools for calling Firebase Firestore REST API with UnityWebRequest. πŸ”₯
https://github.com/gimchuang/com.gm.unity-firebase-tool

database firestore rest-api unity unity-firebase unitywebrequest

Last synced: 26 days ago
JSON representation

Tools for calling Firebase Firestore REST API with UnityWebRequest. πŸ”₯

Awesome Lists containing this project

README

          

# 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](https://github.com/firebase/quickstart-unity/issues/381#issuecomment-595845307).
---

I started this project because I need to use [Firestore](https://firebase.google.com/docs/firestore) as my database but the official Firebase Unity SDK only supports [Realtime Database](https://firebase.google.com/docs/database).
This tool currently provides very basic functions to create a [document](https://firebase.google.com/docs/firestore/data-model#documents) and retrieve a specific document or all documents in a [collection](https://firebase.google.com/docs/firestore/data-model#collections). 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//databases/(default)/documents"
}
```