GameFrameX 的 Web ProtoBuff 請求組件 - 提供基於 Protocol Buffer 的 HTTP 網絡請求功能,支持異步發送和接收 ProtoBuff 消息。
選擇以下任一方式:
-
編輯 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開頭的套件才會從這個註冊表取得。 -
直接在
manifest.json的dependencies節點下添加以下內容:{ "com.gameframex.unity.web.protobuff": "https://github.com/gameframex/com.gameframex.unity.web.protobuff.git" } -
在 Unity 的
Package Manager中使用Git URL的方式添加庫,地址為:https://github.com/gameframex/com.gameframex.unity.web.protobuff.git -
直接下載倉庫放置到 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"
}
}