1.10 将custom package添加到unity快捷菜单中
Unity技术Thepoly 14343 0
实名

通过了实名认证的内容创造者

发布于 2022-3-24 16:23:40

您需要 登录 才可以下载或查看,没有账号?注册

x
本帖最后由 Thepoly 于 2022-3-24 20:04 编辑

      src=http___xqimg.imedao.com_17b70f518351426d3fd73b36.png!800.jpgrefer=http___xqimg.imedao.webp.jpg
174551k9r66ex7z719e99h.jpg
Hello,大家好。
本内容由Kinglary分享
游戏引擎相关内容
1.10 将custom package添加到unity快捷菜单中
1.10 Adding custom packages to Unity's quick list

If you have one or more packages you'd like to include frequently in your projects, it might be a good idea to add them to Unity's package quick list.
如果你有一个或多个包,想频繁的加入到你的项目中。这里有一个好主意,就是把它们加入到unity的包快捷菜单之中(package quick list)。
Getting ready(准备工作)
In order to complete this recipe, you will need a custom package (any package will do). If you need one for testing purposes, please use the one inside the  0423_01_09-11 folder.
为了完成这一部分的内容,你需要一个自定义包(或者任何一个可以用的包)。如果你需要一个用来测试的包,请在0423_01_09-11文件夹中选取一个使用(本书的下载内容,可以忽略,不影响学习)。
How to do it...(如何去做)
To add a custom package to the quick list, follow these steps:
把一个自定义包加入到快捷菜单中,要遵循以下步骤:

1.Using your file manager (Windows Explorer on Windows, Finder on Mac OS), browse to the package file and copy it by pressing Ctrl + C or Command + C.
1.使用你的文件管理器(就是windows上的windows浏览器或是Mac OS系统里的Finder),找到你的package(在这里作者将这个包命名为Custompackage,方便教学)文件所在的硬盘位置,Ctrl C复制或是Command C(苹果系统的)。

2.Go to Unity's Editor folder. On Windows, that would typically be  C:/Program Files (x86)/Unity/Editor or  C:\Program Files\Unity\Editor . On Mac OS, it should be  Applications/Unity .
2.进入到Unity的Editor文件夹(就是在你unity硬盘安装位置下,很显眼),接下来的内容是作者安装unity时的路径, C:/Program Files (x86)/Unity/Editor or  C:\Program Files\Unity\Editor . On Mac OS, it should be  Applications/Unity。

3.Access the Standard Packages folder.
3.再进入Standard Packages文件夹(unity5以及之后的新版本,是Standard Assets文件夹)。

4.Paste the previously copied package into this folder..
4.将你刚才复制的包粘贴到这个文件夹里面。

5.Restart Unity. It should now be listed on the Assets menu, under the Import Package sub-menu, as shown in the following screenshot:
5.重启unity,之后点击Assets菜单import Package子选项,你就可以看到里面有一个你刚刚加进去的包了,如截图所示(菜单栏最下,custompackage已经显示了)。
How it works...(工作原理)
Unity's menu actually reads the Standard Packages folder content when starting up,instead of getting that information from somewhere else. This is very practical, as it always reflects the actual content of that folder and also allows the user to quickly retrieve his favorite packages.
Unity的菜单在启动的时候会自动读取Standard Packages文件夹中的内容,而不是从其他某些地方读取信息。这一点很实用,正因为它自动读取该文件夹的内容,所以也允许使用者快速从菜单栏中提取自己喜欢的包。
There's more...(更多)
Custom packages stored in the Standard Packages folder will also appear in the Create New Project Wizard window, making it simple to add them to new projects.
在Standard Packages文件夹中保存的自定义包,也将在 Create New Project Wizard视窗之中显示,方便你将他们快速的加入到新项目里。


本帖被以下画板推荐:

还没有设置签名!您可以在此展示你的链接,或者个人主页!
使用道具 <
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表