Skip to content

GameFrameX/com.gameframex.unity.web.protobuff

Repository files navigation

Game Frame X Logo

Game Frame X Web ProtoBuff

License Version Unity Version Documentation

All-in-One Solution for Indie Game Development · Empowering Indie Developers' Dreams


Documentation · Quick Start · QQ Group: 467608841 / 233840761


English | 简体中文 | 繁體中文 | 日本語 | 한국어

Project Overview

GameFrameX Web ProtoBuff request component - provides HTTP network request functionality based on Protocol Buffer, supporting asynchronous sending and receiving of ProtoBuff messages.

Features

  • ProtoBuf Support: Native support for Protocol Buffer message format
  • Async Operations: Task<T> based async API for easy use with async/await
  • Timeout Control: Customizable request timeout
  • Cross-Platform: Compatible with Unity WebGL and other native platforms

Requirements

Add the following scripting define symbol in Unity's Player Settings -> Scripting Define Symbols:

ENABLE_GAME_FRAME_X_WEB_PROTOBUF_NETWORK

Installation

Installation

Edit your Unity project's Packages/manifest.json and add the scopedRegistries section:

{
  "scopedRegistries": [
    {
      "name": "GameFrameX",
      "url": "https://gameframex.upm.alianblank.uk",
      "scopes": [
        "com.gameframex"
      ]
    }
  ]
}

scopes controls which packages are resolved through this registry. Only packages whose names start with com.gameframex will be fetched from it.

Then add the package to dependencies:

{
  "dependencies": {
    "com.gameframex.unity.web.protobuff": "1.1.3"
  }
}

Usage Example

using GameFrameX.Web.ProtoBuff.Runtime;

// Send request and wait for result
LoginResponse response = await WebComponent.Post<LoginResponse>(url, request);

About

GameFrameX Unity Web ProtoBuf component combining HTTP requests with Protocol Buffers serialization

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages