Back to Unity

DryreL Software Unity

Supabase Stats Manager

Telemetry, playtime and promo keys for Unity, on Supabase

Track events, playtime and promo keys with one database write per session, not one per click.

Not released yet

  • 1Database write per session
  • 0Table migrations for a new event
  • 6Platforms

Overview

What it does

A telemetry, playtime tracking, promotion key redemption and statistics system for Unity, backed by Supabase PostgreSQL and built to stay inside free-tier limits.

  • Unity
  • C#
  • Supabase
  • PostgreSQL

Platforms

  • WebGL
  • Windows
  • macOS
  • Linux
  • Android
  • iOS

How it works

From zero to working

  1. Run the setup SQLOne script creates the tables and the atomic RPC functions in your Supabase project.
  2. ConfigureSet up SupabaseStatsConfig and register your events in SupabaseEventTypeConfig.
  3. Track and redeemReport events and playtime from gameplay, or hook them to buttons from the dashboard with no code.

Features

Built to just work

  • Batched telemetryEvents are collected as deltas in memory and sent in one atomic RPC at scene changes, on a timer or on quit.
  • Playtime trackingHigh-resolution session timers record active playtime in seconds.
  • Promo keysRedeem promotion keys atomically, so one key cannot be claimed twice.
  • Offline resilientNetwork drops do not lose data.
  • WebGL lifecycleHooks the browser page lifecycle so closing the tab still saves stats.
  • Editor dashboardA stats dashboard inside the Unity editor, plus configuration assets for events.
  • Standalone by defaultWith no Patreon package, players sign in through Supabase Anonymous Auth. If Patreon Authenticator is present, the session is raised to their Patreon identity and the guest stats are merged.
  • Flexible schemaCore columns plus a JSONB game_data object, so any new event or metric needs no backend migration.
  • No-code hookupsWire events to buttons from the dashboard, or use SupabaseStatsProxy without it.

Requirements

Before you start

  • Unity 2021.3 or newer
  • A Supabase project (PostgreSQL)