- 在 Runtime跟 Editor 中提供 .asmdef
- 完善 package.json 内容
- Demo 采用 Sample~ 或者 Demo~ 的忽略形式,通过 package.json 设置导入
{
"name": "InfiniteList",
"displayName": "HT InfiniteList",
"version": "1.0.0",
"unity": "2022.3",
"description": "",
"author": {
"name": "SaiTingHu",
"url": "https://wanderer.blog.csdn.net/"
},
"samples": [
{
"displayName": "Demo",
"description": "InfiniteList Demo",
"path": "Samples~/Demo"
},
],
"repository": {
"type": "git",
"url": "https://github.com/SaiTingHu/InfiniteList.git"
},
"relatedPackages": {},
"dependencies": {
}
}
具体可以参考 YooAsset
{ "name": "InfiniteList", "displayName": "HT InfiniteList", "version": "1.0.0", "unity": "2022.3", "description": "", "author": { "name": "SaiTingHu", "url": "https://wanderer.blog.csdn.net/" }, "samples": [ { "displayName": "Demo", "description": "InfiniteList Demo", "path": "Samples~/Demo" }, ], "repository": { "type": "git", "url": "https://github.com/SaiTingHu/InfiniteList.git" }, "relatedPackages": {}, "dependencies": { } }具体可以参考 YooAsset