Skip to content

Latest commit

 

History

History
90 lines (68 loc) · 2.81 KB

File metadata and controls

90 lines (68 loc) · 2.81 KB
Game Frame X Logo

Game Frame X Web ProtoBuff

License Version Unity Version Documentation

獨立遊戲前後端一體化解決方案 · 獨立遊戲開發者的圓夢大使


文檔 · 快速開始 · QQ群: 467608841 / 233840761


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

項目簡介

GameFrameX 的 Web ProtoBuff 請求組件 - 提供基於 Protocol Buffer 的 HTTP 網絡請求功能,支持異步發送和接收 ProtoBuff 消息。

快速開始

安裝

選擇以下任一方式:

  1. 編輯 Unity 專案的 Packages/manifest.json,添加 scopedRegistries 部分:

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

    scopes 控制哪些套件透過此註冊表解析。只有以 com.gameframex 開頭的套件才會從這個註冊表取得。

  2. 直接在 manifest.jsondependencies 節點下添加以下內容:

    {
       "com.gameframex.unity.web.protobuff": "https://github.com/gameframex/com.gameframex.unity.web.protobuff.git"
    }
  3. 在 Unity 的 Package Manager 中使用 Git URL 的方式添加庫,地址為:https://github.com/gameframex/com.gameframex.unity.web.protobuff.git

  4. 直接下載倉庫放置到 Unity 專案的 Packages 目錄下,會自動載入識別。

安裝

編輯 Unity 專案的 Packages/manifest.json,添加 scopedRegistries 部分:

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

scopes 控制哪些套件透過此註冊表解析。只有以 com.gameframex 開頭的套件才會從這個註冊表取得。

Then add the package to dependencies:

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