Notifications
bg
d
davislee
Programmer
0
Likes
4
Followers
2
Connections
All
Articles0
Games0
Showcases0
Column0
Jobs0
unity 2019.1.4
package manager 私有包能成功导入,但不能引用,请问是哪里的问题?

通过本地化和私有npm服务器的方式,都能成功将包导入到packages中,但是主程序脚本无法引用私有包的内容;

将packages放到assets中的话,可以正常引用脚本。

package.json的内容如下:
{
"name": "com.tioyo.utils",
"displayName": "Tioyo Utils",
"version": "0.1.3",
"description": "tioyopackage for utils",
"author": "davislee",
"license": "MIT",
"dependencies": {}
}

更新1:
测试了将Utils改为其它名称,并重启VS、UNITY及电脑,问题依旧存在

d
2 months ago
Reply@Pengyue Li不用另找参考,就是把工程文件用编码软件打开,参考别的package的配置格式,配置你自定义的package
你好,如果是package的配置的话,我有尝试直接COPY了unity的包配置:======这个是unity自带包的{ "name": "com.unity.package-manager-ui", "displayName": "Package Manager UI", "version": "2.1.2", "unity": "2019.1", "description": "Use the Unity Package Manager user interface to manage a Project's packages and discover new packages.\n\nFor more information, click the 'View documentation' link above. ", "dependencies": {} } ======这个是我的{ "name": "com.tioyo.tioyotool", "displayName": "Tioyo Utils", "version": "1.0.0", "unity": "2019.1", "description": "description ", "dependencies": {} }
Pengyue Li
Developer Relations Engineer
2 months ago
不用另找参考,就是把工程文件用编码软件打开,参考别的package的配置格式,配置你自定义的package
d
2 months ago
Reply@Pengyue Li可以试试修改一下代码工程文件 .csproj ,参考别的package在工程文件里都配置了哪些内容,照着改一改
您好,请问怎么修改,有没有参考的工程配置文件?或者我将我的工程打包给您看看?
Pengyue Li
Developer Relations Engineer
2 months ago
可以试试修改一下代码工程文件 .csproj ,参考别的package在工程文件里都配置了哪些内容,照着改一改
View More Comments
davisleejoined anevent
使用Entity Component System开发《快乐的Minecraft》游戏
ONLINE EVENT
8:00 AM - 9:30 AM September 12, 2018 (Local: UTC0)
08:00 - 09:30 Sep 12, 2018 (Local: UTC0)
1204 Participants
davisleejoined anevent
直播|使用ML-Agents快速掌握强化学习
ONLINE EVENT
8:00 AM - 9:00 AM April 25, 2018 (Local: UTC0)
08:00 - 09:00 Apr 25, 2018 (Local: UTC0)
852 Participants
davisleejoined anevent
官方技术直播|支持美术资产快速迭代-Unity艺术工具功能详解
ONLINE EVENT
8:00 AM - 9:00 AM March 28, 2018 (Local: UTC0)
08:00 - 09:00 Mar 28, 2018 (Local: UTC0)
847 Participants
davisleejoined anevent
通过可视化Shader编程快速创建炫酷特效 - Unity 2018 Shader Graph介绍
ONLINE EVENT
8:00 AM - 9:00 AM April 11, 2018 (Local: UTC0)
08:00 - 09:00 Apr 11, 2018 (Local: UTC0)
975 Participants
About Me
No description
See more
Skills
No skills added yet
Certifications (0)
Import
See all
davislee's liked projects (0)
No likes yet
Following (2)
Followers (4)
Following Companies (0)
Not following anyone yet