Dev Asset Collection

All Things That You Need to Build A Video Game
Menu
  • 2D
    • Characters
    • Environments
    • Fonts
    • GUI
    • Textures & Materials
  • 3D
    • Animations
    • Characters
    • Environments
    • GUI
    • Props
    • Vegetation
    • Vehicles
  • Add-Ons
    • Machine Learning
    • Services
  • Audio
    • Ambient
    • Music
    • Sound FX
  • Essentials
    • Tutorial Projects
  • Templates
    • Packs
    • Systems
    • Tutorials
  • Tools
    • AI
    • Animation
    • Audio
    • Camera
    • Game Toolkits
    • GUI
    • Input Management
    • Integration
    • Level Design
    • Localization
    • Modeling
    • Network
    • Painting
    • Particles & Effects
    • Physics
    • Sprite Management
    • Terrain
    • Utilities
    • Version Control
    • Video
    • Visual Scripting
  • VFX
    • Particles
    • Shaders
Home
Tools
Integration
EzAPI – Dev Community

EzAPI – Dev Community

Tsunami 28 December, 2025
Sending
User Rating 0 (0 votes)

EzAPI is a Unity package for clean REST API calls. Configure endpoints and APIConfigs in the editor, then hit APIs via APIManager or APIClass with queuing, retries, error handling.

EzAPI v2.1.0 (Latest version)

VIP Only

“Sharing is caring”

Description
EzAPI is a Unity package that turns messy web requests into a clean, configurable API layer. Instead of scattering `UnityWebRequest` code and hard-coded URLs across your project, you define your endpoints once in an editor Settings window and access them via a type-safe `EndPoints` enum.

You configure base URLs, environments (dev/staging/prod) and behavior using `APIConfig` ScriptableObjects, then swap them per build without touching code. Each API call uses strongly-typed request and response classes that inherit from `RequestPayloadBase` and `RequestResponseBase`, keeping your payloads and results easy to read, debug, and extend.

At runtime, you call APIs through `APIManager` (singleton) or `APIClass<TRequest, TResponse>` (per-call object) to add headers, callbacks, and progress listeners. Under the hood EzAPI provides request queuing, configurable max concurrent requests, retries, and structured error codes (`-1` network, `-2` call/config error, others from backend), plus performance improvements by avoiding reflection in `APIClass`. The result is a robust, production-ready API system that lets you focus on gameplay and features instead of low-level networking details.

Technical details
Unity version support: Built for Unity 2020.3+

Core transport: Wraps UnityWebRequest with a higher-level API for typed requests and responses.
Type-safe endpoints: Endpoints are configured in an editor Settings asset and exposed as a generated EndPoints enum (no magic strings).
Config system:
APIConfig ScriptableObject for base URL, timeouts, retry counts, and default behavior.
Multiple APIConfig assets supported for dev/staging/production swaps.
Request/response models:
Request classes inherit from RequestPayloadBase.
Response classes inherit from RequestResponseBase (includes success, responseCode, failureMessage).
API access patterns:
APIManager.Instance.HitAPI<TRequest, TResponse>(EndPoints endpoint, TRequest payload, …).
APIClass<TRequest, TResponse> instances for per-call configuration (headers, listeners, etc.).
Request queuing & concurrency:
Built-in request queue with configurable max concurrent requests.
Additional requests are queued and processed automatically.
Retry & timeout handling:
Per-endpoint retry configuration via RequestClass + APIConfig defaults.
Timeouts configurable at the config/endpoint level.
Performance optimizations:
APIClass API hits avoid reflection to reduce GC and overhead.
Centralized logic minimizes duplicate UnityWebRequest setup code.
Error semantics:
responseCode == -1: network-level errors (no internet, DNS, etc.).
responseCode == -2: API call / configuration errors (missing endpoint, invalid setup).
Other codes: backend/server HTTP or logical errors.
Editor integration:
Settings window under Tools > EZAPI > Settings for endpoints and config selection.
Tools > EZAPI > Save regenerates the EndPoints enum and persists configuration.
Extensibility & internals:
RequestClass represents endpoint config and can be inspected programmatically.
RequestMediater is an internal static helper for sending requests and handling low-level responses (accessible but not recommended for regular gameplay code).

Prev Article
Next Article

Related Articles

Login with Discord – Dev Community
Tsunami 11 July, 2023

Login with Discord – Dev Community

Nested Prefab – Dev Community
Tsunami 5 October, 2020

Nested Prefab – Dev Community

iOS and tvOS iCloud Plugin – Dev Community
Tsunami 5 October, 2020

iOS and tvOS iCloud Plugin – Dev Community

ULTIMATE JSON – Dev Community
Tsunami 30 September, 2020

ULTIMATE JSON – Dev Community

Leave a Reply Cancel Reply

Recent Posts

  • Triple-A MOBA Spells – Free Download
  • Skeleton Super Pack – Free Download
  • SuperBotPackVol_2 – Free Download
  • Runtime Spawner – Dev Community
  • Crest Water 5 (Oceans, Rivers, Lakes) – Dev Community

Dev Asset Collection

All Things That You Need to Build A Video Game
Copyright © 2026 Dev Asset Collection
Privacy Policy | Disclaimer | DMCA