Godot Firebase
repository·main·Indexed 20 days ago
https://github.com/godotnuts/godotfirebaseA Google Firebase SDK written in GDScript for Godot Engine projects. It provides integration for Firebase services including Authentication, Database, Firestore, Functions, and Storage.
What's inside godotfirebase
- Godot Firebase is a Google Firebase SDK written in GDScript. It is designed specifically for integration into Godot Engine projects, allowing developers to access Firebase services directly within the Godot ecosystem.
Configure HTTPSSEClient for Firebase
mainTo connect
HTTPSSEClientto a Firebase Realtime Database using Server-Sent Events:- Config Dictionary: Populate the
configdictionary with the contents of your Firebase Android app configuration (the data found in yourgoogle-services.jsonfile). - URL: Set the
firebase_urlin the script to your Firebase endpoint. - Sub URL: Set a
sub_urlvalue following the pattern/your_demo_list.json?auth=. - Authentication: Append either your Firebase ID token or your database secret to the
auth=parameter in thesub_url.
Note: Database secrets are deprecated but currently supported for backward compatibility.
# Example conceptual configuration # sub_url pattern: "/path_to_data.json?auth=" + auth_token- Config Dictionary: Populate the
Install the HTTPSSEClient plugin
mainTo install the HTTPSSEClient plugin in your Godot project:
- Download the plugin files.
- Place the files into the
res://addons/HTTPSSEClient/folder of your project. - Open Project Settings -> Plugins and set the plugin to active.
- Instantiate an
HTTPSSEClientnode in your scene tree.
Clone the Godot Firebase repository
mainYou can install the project by cloning the repository via SSH or HTTPS.
# SSH git clone git@github.com:GodotNuts/GodotFirebase.git # HTTPS git clone https://github.com/GodotNuts/GodotFirebase.gitHow to install, activate, and use Godot Firebase
mainFor detailed instructions on how to install, activate, and use the Godot Firebase plugin within your Godot Engine projects, refer to the official project wiki.Update an existing manual installation to the 4.x main branch
mainIf you previously downloaded the repository manually, you must update your local repository to align with the new branch structure. The
4.xbranch is now themainbranch, while3.xhas been moved to a separate branch.Run the following commands to rename your local branch and sync with the remote origin:
git branch -m 4.x main git fetch origin git branch -u origin/main main git remote set-head origin -a