
Namazu Elements Codegen plugin for Unity | Cross-Platform GBaaS
Namazu Studios
$0.0
(no ratings)
Jump AssetStore
Namazu Elements Codegen plugin is a codegen tool, session manager, and client wrapper for the open source game backend, Namazu Elements. Includes popular functions like leaderboards, missions, & more!Requires Newtonsoft.json (com.unity.nuget.newtonsoft-json) package.Namazu Elements Codegen plugin for Unity is a Unity plugin designed to seamlessly integrate with the Namazu Elements backend. It enables game designers to auto-generate robust, backend-ready C# code directly within Unity. This transforms complex API interactions—like user auth, inventory, matchmaking, leaderboards, progress tracking, sessions, and more—into simple, maintainable methods and types. You can rapidly prototype connected or live-enabled features without manually handling requests or state persistence logic.Generate your code using a running instance of Namazu Elements. No need to write tons of boilerplate to connect your game to Namazu Elements, just click [Generate] and get running in a couple lines of code.Namazu Elements is free and open source: https://github.com/NamazuStudiosGet started quickly here: https://github.com/NamazuStudios/docker-composeCheck out the manual here: https://namazustudios.com/docsFunctionality & Developer BenefitsWe designed the Namazu Elements Codegen plugin to work seamlessly with your Unity game design workflow:Offline-Ready REST Client CodeSkip manual HTTP, JSON parsing, error handling. Focus purely on game logic.Generates C# wrappers for Elements REST APIs (user, inventory, leaderboards, matchmaking, progress, sessions, notifications, save states, etc.)Typed Models & State HandlingStrong typing, fewer bugs, maintainable codebase.Creates data models (e.g. User, Item, Mission, LeaderboardEntry) with automatic serialization and state tracking.https://namazustudios.com/docs/core-features/Serverless Function IntegrationWrite server logic (leaderboards, rewards, matchmaking) in Java, deploy via Elements alongside Unity code https://namazustudios.com/docs/custom-code/Supports deployment of cloud functions (“elements” / script containers) for custom logic with persistent state.Real-Time Services (WebSockets)Built-in real-time hooks without crafting your own socket layerAuto-generates WebSocket client support for live interactions like matchmaking, notifications, progress updates.OAuth2 / OIDC Authentication FlowsSecure user identity out of the box - no rolling your own login system.Templates to wire up authentication via OAuth2 or OIDC, complete with login handling and session refresh.GraphQL-Style Extensibility & Swagger IntegrationFull visibility and customization through auto‑generated code and server-side hooksIntegration with Swagger UI for REST inspection, and ability to implement custom server-side logic using Java annotations/extensions.Low-Latency, Persistent Container SupportNo cold starts or flakey performance when players hit live servicesDeploy custom logic in lightweight, persistent containers that stay hot and stateful.Comprehensive API CoverageOne unified toolset handles all your backend needs Includes support for essential gaming backend systems: inventory, leaderboard, match, mission, progress, reward_issuance, schedule, notification, session, save_data, large_object, profile, etc.https://namazustudios.com/rest/api/Codegen-Friendly Javadocs & SwaggerDevelopers can intuitively grasp usage without pipeline leaks.Automatic Javadoc and API spec generation ensures Unity C# methods are fully documented and aligned with backend endpoints.Version Management & Back-Office GUIDevOps control at your fingertips—no separate dashboard tooling required Tools to configure API versions, manage sessions, mock environments, monitor health/status directly within Elements’ admin console.https://namazustudios.com/docs/accessing-the-web-ui-crm/Web3 & Blockchain Off‑RampsFuture‑proof infrastructure for NFTs, on‑chain items, or wallet‑connected gameplaySupports chain-agnostic features: wallet integration, vaults, smart contracts across Ethereum, Flow, Solana, Neo.https://namazustudios.com/docs/omni-chain-support/Why It Matters for Unity Game DesignersProblem How Elements Codegen Solves It-Boilerplate backend code **Automated API client generation-Error-prone JSON handling **Strongly typed, serialized C# models-Stateless cloud functions **Persistent serverless containers with hot memory-Slow dev cycles with manual **Quick iteration with auto-deployed backend changes-Auth complexities **Plug-and-play OAuth2/OIDC flows-Reactive multiplayer logic **Built-in WebSocket code for real-time interactivity-Asset Store friendly install **Single plugin, minimal integration hassleDeveloper Action ItemsInstall the Namazu Elements Codegen plugin from the Unity Asset Store.Connect to your Namazu Elements environment via the Namazu Elements dashboard.Select which APIs you need and trigger code generation.Import the generated code into your Unity project using the Namazu Elements Codegen plugin.Use models/calls directly - e.g., InventoryService.GetItems(...), Matchmaking.JoinMatch(...), Leaderboard.SubmitScore(...), etc.Test and mock via the built‑in Namazu Elements UI and REST Swagger playground.(Optional) extend server logic using Java with Elements’ server-side SDK, supported workflows, and WebSocket channels.Final AssessmentNamazu Elements Codegen plugin isn’t just another backend SDK - it’s a full-featured backend-as-a-Service, scalable for any online game. It eliminates backend friction by generating battle-tested C# client libraries, removing serialization and networking headaches, and supporting live, persistent game services out-of-the-box. It aligns with the modern Unity dev workflow- high velocity, high reliability, developer-first.Core Technical Highlights1. Auto-Generated, Typed REST API ClientsCodegen generates strongly typed C# clients for all Namazu Elements backend services (Inventory, Matchmaking, Leaderboards, Sessions, Progress, etc).No runtime reflection or dynamic JSON parsing - compile-time safety.Built using [APIMATIC or OpenAPI spec]-driven generators (standardized, production-hardened).Includes full error handling and retry logic.Result: No spaghetti networking code. Safer, faster dev with clear intellisense + fewer bugs.2. Persistent Serverless FunctionsServer-side logic written in Java, deployed to stateful container runtimes.Cold starts eliminated - containers maintain memory across invocations.Supports long-lived in-memory game state, object pooling, and complex server-side behavior.Result: Unlike AWS Lambda or Firebase, you can run game loop logic server-side with low latency.3. Zero-Config WebSocket IntegrationCodegen includes ready-to-use WebSocket clients with message handling stubs.Hooks into matchmaking updates, notifications, presence, progress sync, etc.Result: Real-time multiplayer scaffolding out-of-the-box, no custom socket layer required.4. Cross-Platform Authentication (OAuth2 / OIDC)Ready-to-integrate login flows for Unity (desktop, mobile, web).Token management, session refresh, and secure storage are all handled.Result: Bulletproof login system without duct-taping Firebase/Auth0/Supabase.5. Namazu Elements Namespace MappingThe Namazu Elements Codegen plugin respects the backend’s OpenAPI spec and maps each namespace/service into its own C# module:e.g., InventoryService, UserService, MatchmakingService, LeaderboardService.Result: Separation of concerns + clean folder structure, no generated monolith.6. Generated Data Models w/ JSON Schema ValidationModels like Item, Mission, LeaderboardEntry, UserProfile generated from backend schemas.Built-in serialization, deserialization, and validation conform to backend contracts.Result: Backend/frontend never drift. Data always lines up. No manual syncing.7. Swagger & API Doc IntegrationEvery generated class and method includes inline documentation from the backend API spec.Supports linking to live Swagger UI or downloading OpenAPI files.Result: Discoverable and explainable. New devs onboard faster.8. Secure, Scalable Backend InfrastructureBuilt on containerized JVM microservices, with gRPC and HTTP/2 under the hood.Supports multi-region deployment, caching layers, message queues.Result: Battle-tested infra scale. Your game doesn’t break under load.9. Codegen CLI & Build IntegrationSupports automated regeneration via CLI (for CI/CD).Compatible with Unity build pipelines.Result: Update your backend, re-gen the Unity SDK, and ship - no rebuild hell.⚠️ Red Flags Avoided❌ No reflection-based runtime models (slow, error-prone)❌ No manual JSON parsing or UnityWebRequest boilerplate❌ No cold-start serverless traps❌ No Unity editor-only SDKs - code works in builds❌ No data model drift between backend & frontend- Codegen for client API wrapper for all core Namazu Elements APIs and any custom application APIs- Client session manager- Request/response hooks