LoginSignup
0
0

Unity Package ManagerのAdd package from git urlで追加する

Last updated at Posted at 2023-05-20

最低条件

公開したいデータのRoot/
┣ Scripts
┣ ┗ hoge.cs
┣ {パッケージ名}.asmdef
┗ package.json
package.json
{
    "name": "com.tomoi.unityeasynet",//小文字
    "displayName": "UnityEasyNet",//パッケージの名前
    "version": "0.0.1",//パッケージのバージョン
    "unity": "2021.3",//Unityの最低バージョン
    "description": "Simplify Unity communication.",//パッケージの説明
    "author": {
        "name": "tomoi",
        "url": "https://github.com/tomoi"
    }
}

サンプルを追加する場合

公開したいデータのRoot/
┣ Sample~
┃ ┗ {パッケージ名}
┃    ┗ {サンプルの名前}
┃       ┗ //内容
┃    //サンプルを追加する場合は{パッケージ名}直下に配置する
┣ Scripts
┣ ┗ hoge.cs
┣ {パッケージ名}.asmdef
┗ package.json

package.jsonに以下を追加する

package.json
    ,
    "samples": [
        {
            "displayName": "ChatSample",//サンプルの名前
            "description": "Sample of sending and receiving strings.",//サンプルの説明
            "path": "Samples~/UnityEasyNet/1.ChatSample"//rootからサンプルまでの相対パス
        }
    ]
}
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0