最低条件
公開したいデータの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からサンプルまでの相対パス
}
]
}