dev.edgebase.unity
0.2.3
See the version list below for details.
dotnet add package dev.edgebase.unity --version 0.2.3
NuGet\Install-Package dev.edgebase.unity -Version 0.2.3
<PackageReference Include="dev.edgebase.unity" Version="0.2.3" />
<PackageVersion Include="dev.edgebase.unity" Version="0.2.3" />
<PackageReference Include="dev.edgebase.unity" />
paket add dev.edgebase.unity --version 0.2.3
#r "nuget: dev.edgebase.unity, 0.2.3"
#:package dev.edgebase.unity@0.2.3
#addin nuget:?package=dev.edgebase.unity&version=0.2.3
#tool nuget:?package=dev.edgebase.unity&version=0.2.3
<p align="center"> <a href="https://github.com/edge-base/edgebase"> <img src="https://raw.githubusercontent.com/edge-base/edgebase/main/docs/static/img/logo-icon.svg" alt="EdgeBase Logo" width="72" /> </a> </p>
EdgeBase.Unity
Client SDK for Unity.
EdgeBase.Unity brings EdgeBase auth, database, realtime, rooms, storage, functions, analytics, and push to Unity projects. It is designed for client-side app code, not trusted server or admin tasks.
EdgeBase is the open-source edge-native BaaS that runs on Edge, Docker, and Node.js.
This package is one part of the wider EdgeBase platform. For the full platform, CLI, Admin Dashboard, server runtime, docs, and all public SDKs, see the main repository: edge-base/edgebase.
Requirements
- Unity 2021.3 LTS or newer
- .NET Standard 2.1
- IL2CPP and Mono
Documentation Map
Use this README for the fast overview, then jump into the docs when you need depth:
- SDK Overview Install commands and the full package matrix
- Quickstart Project creation and local development
- Authentication Email/password, OAuth, MFA, sessions, and captcha
- Database Client SDK Query and mutation patterns for client-side data access
- Database Subscriptions Live change listeners and realtime database patterns
- Room Client SDK Presence, room state, signals, and media flows
- Functions Client SDK Calling EdgeBase functions from client code
- Analytics Client SDK Client-side event tracking
- Push Client SDK Push registration and message handling
For AI Coding Assistants
This package includes an llms.txt file for AI-assisted development.
You can find it:
- in this repository: llms.txt
- in the packed NuGet artifact alongside the package contents
Use it when you want an agent or code assistant to:
- keep client-only code in Unity and server-only code in
EdgeBase.Admin - use
Db(namespace, instanceId?)with positional instance ids - remember that
Room(namespaceName, roomId, ...)is the Unity room entry point - avoid copying browser assumptions into Unity code
Installation
If you are working inside this repository, reference the project directly:
<ItemGroup>
<ProjectReference Include="..\packages\sdk\csharp\packages\unity\EdgeBase.Unity.csproj" />
</ItemGroup>
The NuGet package id declared by the project is dev.edgebase.unity.
If you are importing the SDK into a Unity project directly, place the package source or compiled assembly under your Assets/Plugins path as appropriate.
Quick Start
using EdgeBase;
var client = new EdgeBase.EdgeBase("https://your-project.edgebase.fun");
var user = await client.Auth.SignInAsync("june@example.com", "pass1234");
var posts = await client.Db("app")
.Table("posts")
.Where("published", "==", true)
.GetListAsync();
await client.Storage.Bucket("avatars").UploadAsync(
"user123.png",
System.IO.File.ReadAllBytes("avatar.png"),
"image/png"
);
var room = client.Room("game", "lobby-1");
Console.WriteLine(user["accessToken"]);
Console.WriteLine(posts.Total);
Core API
Once you create a client, these are the main surfaces you will use:
new EdgeBase.EdgeBase(baseUrl)Main Unity client entry pointclient.AuthSign up, sign in, sign out, OAuth, MFA, and auth stateclient.Db(namespace, instanceId?)Query tables and mutate recordsclient.StorageUpload files and resolve URLsclient.PushRegister device tokens and listen for push messagesclient.FunctionsCall app functions from client codeclient.AnalyticsTrack client analyticsclient.Room(namespaceName, roomId, ...)Join realtime rooms for presence and state flowsclient.SetContext(...),client.GetContext(),client.SetLocale(...),client.GetLocale()Request context and locale helpersclient.Destroy()Close network resources when the client is no longer needed
Choose The Right Package
| Package | Use it for |
|---|---|
EdgeBase.Unity |
Unity client apps with auth, database, rooms, storage, functions, analytics, and push |
EdgeBase.Admin |
Trusted server-side code with Service Key access |
EdgeBase.Core |
Low-level primitives and custom integrations |
License
MIT
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
| .NET Core | netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.1 is compatible. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.1
- dev.edgebase.core (>= 0.2.3)
- System.Text.Json (>= 8.0.5)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.