dev.edgebase.unity 0.2.3

There is a newer version of this package available.
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
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="dev.edgebase.unity" Version="0.2.3" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="dev.edgebase.unity" Version="0.2.3" />
                    
Directory.Packages.props
<PackageReference Include="dev.edgebase.unity" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add dev.edgebase.unity --version 0.2.3
                    
#r "nuget: dev.edgebase.unity, 0.2.3"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package dev.edgebase.unity@0.2.3
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=dev.edgebase.unity&version=0.2.3
                    
Install as a Cake Addin
#tool nuget:?package=dev.edgebase.unity&version=0.2.3
                    
Install as a Cake Tool

<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:

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 point
  • client.Auth Sign up, sign in, sign out, OAuth, MFA, and auth state
  • client.Db(namespace, instanceId?) Query tables and mutate records
  • client.Storage Upload files and resolve URLs
  • client.Push Register device tokens and listen for push messages
  • client.Functions Call app functions from client code
  • client.Analytics Track client analytics
  • client.Room(namespaceName, roomId, ...) Join realtime rooms for presence and state flows
  • client.SetContext(...), client.GetContext(), client.SetLocale(...), client.GetLocale() Request context and locale helpers
  • client.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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.2.9 95 4/8/2026
0.2.8 109 4/4/2026
0.2.7 99 3/29/2026
0.2.6 93 3/26/2026
0.2.4 96 3/24/2026
0.2.3 97 3/24/2026
0.2.2 97 3/23/2026
0.2.1 91 3/23/2026
0.2.0 92 3/22/2026
0.1.5 95 3/20/2026
0.1.4 95 3/19/2026