Skip to content

Latest commit

 

History

285 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Game Frame X Logo

Game Frame X Network

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

Network Component - A long-connection network component for Unity that provides network interfaces including TCP, WebSocket, and custom protocol support, making network functionality simpler and more efficient.

Features

  • Long-connection network support (TCP / WebSocket)
  • RPC call mechanism with timeout handling
  • Heartbeat packet mechanism (configurable on focus lost/gained)
  • Pluggable message serialization (IMessageSerializer interface) with two-level registration (global default + per-channel override)
  • Network message serialization and deserialization
  • Network channel management
  • Network event system

Quick Start

Installation

Choose one of the following methods:

  1. 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"
          ]
        }
      ],
      "dependencies": {
        "com.gameframex.unity.network": "2.6.6"
      }
    }

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

  2. Add to manifest.json dependencies:

    {
       "com.gameframex.unity.network": "https://github.com/gameframex/com.gameframex.unity.network.git"
    }
  3. Use Package Manager in Unity with Git URL: https://github.com/gameframex/com.gameframex.unity.network.git

  4. Clone the repository into your Unity project's Packages directory. It will be loaded automatically.

Platform Support

Platform Supported
Windows Yes
macOS Yes
Linux Yes
Android Yes
iOS Yes
WebGL Yes

Documentation & Resources

Community & Support

Changelog

See CHANGELOG.md for details.

Dependencies

Package Description
com.gameframex.unity 1.1.1
com.gameframex.unity.event 1.0.0

License

See LICENSE.md for license information.

About

GameFrameX Network — Unity channel-based network communication package. Supports multiple named connections with configurable packet handling pipelines (send/receive header and body handlers... | GameFrameX Network — Unity 基于通道的网络通信功能包。支持多个命名连接,可配置数据包处理管道(发送/接收头部与包体处理器、心跳、压缩/解压),RPC 超时、焦点控制心跳,以及事件驱动的连接状态通知。

Topics

Resources

Stars

14 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages