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. π₯
- Host: GitHub
- URL: https://github.com/gimchuang/com.gm.unity-firebase-tool
- Owner: GimChuang
- Created: 2020-07-03T08:33:43.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2021-08-03T12:14:14.000Z (almost 5 years ago)
- Last Synced: 2025-06-16T23:05:30.702Z (12 months ago)
- Topics: database, firestore, rest-api, unity, unity-firebase, unitywebrequest
- Language: C#
- Homepage:
- Size: 25.4 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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"
}
```