随笔 - 216  文章 - 0 评论 - 2 阅读 - 24万
< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

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": "unity@example.com",
    "url": "https://www.unity3d.com"
  }
}
View Code
复制代码

 

  文件示例2: xxx.asmdef 文件,如下图所示:  

   

复制代码
{
    "name": "DigitalTwin",
    "references": [],
    "includePlatforms": [],
    "excludePlatforms": [],
    "allowUnsafeCode": false,
    "overrideReferences": false,
    "precompiledReferences": [],
    "autoReferenced": true,
    "defineConstraints": [],
    "versionDefines": [],
    "noEngineReferences": false
}
View Code
复制代码

 

示例包下载:百度网盘

 

  

 

posted on   青叶煮酒  阅读(174)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 25岁的心里话
· 闲置电脑爆改个人服务器(超详细) #公网映射 #Vmware虚拟网络编辑器
· 零经验选手,Compose 一天开发一款小游戏!
· 通过 API 将Deepseek响应流式内容输出到前端
· AI Agent开发,如何调用三方的API Function,是通过提示词来发起调用的吗
历史上的今天:
2020-07-28 C# 英文系统上中文 string 显示乱码
点击右上角即可分享
微信分享提示