No description
- PLSQL 99.9%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| .idea | ||
| addons | ||
| certificates | ||
| export | ||
| in_game | ||
| theme | ||
| UI | ||
| .en2C38.tmp | ||
| .gitattributes | ||
| .gitignore | ||
| export_presets.cfg | ||
| Global.gd | ||
| icon.svg | ||
| icon.svg.import | ||
| icons8-square-spinner.gif | ||
| icons8-square-spinner.gif.import | ||
| LICENSE | ||
| project.godot | ||
| README.md | ||
| SplashScreen.tscn | ||
| Startup.gd | ||
👉 3.x
Godot Engine - Supabase (4.x)
A lightweight addon which integrates Supabase APIs for Godot Engine out of the box.
- Authentication (/auth)
- Database (/database)
- Realtime (/realtime)
- Storage (/storage)
UI Library
A drag&drop UI Library is available at supabase-ui.
examples and demos
A collection of examples and live demos is available at fenix-hub/godot-engine.supabase-examples, both with source code and exported binaries.
how to use
A wiki is available here.
Even though it is still not complete, Classes and APIs references are always listed and updated.
code snippet
Multiple approaches!
Asynchronous (signals)
# method 1 (connecting to `Supabase.auth.signed_in` signal)
func _ready():
Supabase.auth.signed_in.connect(_on_signed_in)
Supabase.auth.sign_in(
"user@supabase.email",
"userpwd"
)
func _on_signed_in(user: SupabaseUser) -> void:
print(user)
# method 2 (using lambdas, connecting to the `AuthTask.completed` signal)
func _ready():
Supabase.auth.sign_in(
"user@supabase.email",
"userpwd"
).completed.connect(
func(authTask: AuthTask) -> void:
print(auth_task.user)
)
Synchronous (await)
func _ready():
var auth_task: AuthTask = await Supabase.auth.sign_in(
"user@supabase.email",
"userpwd"
).completed
print(auth_task.user)