1. 包的类型
(1)嵌入式包(包文件夹在项目文件夹下,在其下的 Packages 子文件夹中)
(2)本地包 (包文件夹在项目文件夹外,路径不固定)
2. 创建 “本地包” 的步骤
官方文档: 创建自定义包
文件示例1:package.json 文件,如下图所示:
{ "name": "com.example.digitaltwin", "version": "0.1.0", "displayName": "Digital Twin", "description": "This is an digital twin utility package", "unity": "2019.1", "unityRelease": "0b5", "documentationUrl": "https://example.com/", "changelogUrl": "https://example.com/changelog.html", "licensesUrl": "https://example.com/licensing.html", "dependencies": {}, "keywords": [ "keyword1", "keyword2", "keyword3" ], "author": { "name": "HDQY", "email": "[email protected]", "url": "https://www.unity3d.com" } }package.json
文件示例2: xxx.Runtime.asmdef 文件,如下图所示:
{ "name": "DigitalTwin", "references": [], "includePlatforms": [], "excludePlatforms": [], "allowUnsafeCode": false, "overrideReferences": false, "precompiledReferences": [], "autoReferenced": true, "defineConstraints": [], "versionDefines": [], "noEngineReferences": false }DigitalTwin.Runtime.asmdef
标签:false,自定义,创建,Unity,文件夹,https,com,example From: https://www.cnblogs.com/dhqy/p/17587336.html