Call Supabase Postgres RPC functions from Unity with UnityWebRequest - no Supabase SDK required. Includes typed responses, structured errors, documentation, and a working demo.IMPORTANT: A Supabase account and project are required. Supabase plans, quotas, availability, and pricing are managed by Supabase and may change independently of this asset.Unity Supabase RPC Helper is a focused, SDK-free solution for calling Supabase Postgres RPC functions from Unity. It uses UnityWebRequest and adds no third-party runtime dependency to your project.Provide your Supabase project URL, a publishable or legacy anon key, the RPC function name, and its JSON parameters. The helper sends the request and returns a clear response containing the HTTP status, raw body, and structured Supabase/PostgREST error information.Use raw responses or convenient typed helpers for GUIDs, strings, booleans, numbers, JSON objects, and JSON arrays. An optional user access token can be supplied for authenticated RPC calls when authentication is managed elsewhere in your application.The package includes a working demonstration scene, a safe SQL example, commented C# examples, Markdown documentation, and a complete offline PDF manual.This is intentionally not a complete Supabase SDK. It does not create database functions, configure RLS, manage authentication or sessions, or provide Table, Storage, Realtime, or Edge Function APIs. It provides one clear integration point for Unity developers who need reliable RPC calls without installing a Supabase SDK.Unity Supabase RPC Helper is an independent Spellforge Lab product. It is not affiliated with or endorsed by Supabase or Unity Technologies.FEATURES- SDK-free Supabase RPC calls using UnityWebRequest- Accepts a Supabase project URL or REST API URL ending in /rest/v1/- Supports publishable keys and legacy anon keys- Optional user access token for authenticated RPCs- Safe JSON parameter builder plus raw JSON calls- Raw response access- Typed helpers for GUID, string, bool, int, long, double, JSON object, and JSON array responses- Structured HTTP and Supabase/PostgREST errors, including code, details, and hint- Configurable timeout and CancellationToken support- Local rejection of recognized secret and legacy service_role keys- Working demo scene and safe SQL demonstration function- English Markdown documentation and complete offline PDF user manual- No third-party runtime code dependencies- Compatible with Built-in, URP, HDRP, and Custom render pipelinesREQUIREMENTS- Unity 2022.3 LTS or newer- A Supabase project- A Postgres function exposed through the Supabase Data API- Correct database permissions and RLS policiesSECURITYThe package does not include or store any Supabase credentials. Project URLs and publishable or legacy anon keys are supplied by the developer. Secret and service_role keys are rejected and must never be included in a client application.SUPPORTED PLATFORMSUses UnityWebRequest and contains no platform-specific RPC code. Tested in Unity 2022.3.62f2 and Unity 6.3 LTS (6000.3.11f1).DOCUMENTATIONComplete setup instructions, API reference, security guidance, troubleshooting, demo scene, and SQL example are included inside the package. OpenAI Codex was used as a development assistant during the refactoring and generalization of an existing working Unity RPC implementation. It assisted with C# code review and restructuring, documentation drafting, test planning, error-handling improvements, and Asset Store package preparation.All functional code and documentation were manually reviewed and edited. The package was compiled and tested in Unity 2022.3.62f2 and Unity 6.3 LTS, including successful real Supabase RPC calls, structured error tests, secret-key rejection, clean-package import, and official package validation.The asset does not use AI or connect to any AI service at runtime.




