1.11 使用项目浏览器 Unity
Unity技术Thepoly 14777 0
实名

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

发布于 2022-3-24 16:52:11

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

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

       src=http___xqimg.imedao.com_17b70f518351426d3fd73b36.png!800.jpgrefer=http___xqimg.imedao.webp.jpg
174551k9r66ex7z719e99h.jpg
     
Hello,大家好。
本内容由Kinglary分享
游戏引擎相关内容
1.11 使用项目浏览器
1.11 Using the Project browser

It doesn't matter how organized you keep your project folders, there will be times when you will need to search for one or more specific assets. To make things easier, Unity 4 includes the Project browser. In this recipe, we will learn how to save time by using it.
在你需要寻找一个或多个指定的资源的时候,不要在乎你是如何组织你的项目文件夹的(当然整理的越规范越好,这里不过是作者的一个修辞),因为在unity4中整合了“Project browser”项目浏览器(工程浏览器、项目/工程搜索器都可以,看习惯),让寻找变得十分简单。在本节内容,我们将学习如何用它来节省寻找时间。
Getting ready(准备工作)
All we need to follow this recipe is a collection of assets. We will use Unity's Terrain Assets to populate our Project view.
学习本章内容我们需要一个资源集合。我们将要用到unity的Terrain Assets,并将它搁置到Project面板之中。(这里需要注明,unity5及以后版本,已经强化了Terrain Assets资源,并将其整合到Environment package下,即环境包。你可以在Assets | Import Package |Environment中找到该资源)。
How to do it...(如何去做)
Let's take a look at the Project browser:
让我们看看项目浏览器(工程浏览器):

1.Import the Terrain Assets package (Assets | Import Package | Terrain Assets).
1.导入Terrain资源包(位置:Assets | Import Package | Terrain Assets。用的是新版本的使用者,在前文“准备工作”中的附加内容中找到Environment包)。

2.Browse through the Assets subfolders to see the files that have been imported and how they are organized, as shown in the following screenshot:
2.浏览资源的子文件夹,看看导入的资源文件是如何被组织的,如下图截屏所示:
3.Now let's search for all the assets containing the word "Palm" in their names. On the search field located above, type in  Palm . Observe how every file and folder is listed on the search results window.
3.现在,让我们寻找文件名称中带有“Palm”的所有资源。在上方的Search field(搜索栏)里,输入字母“Palm”(大小写均可,不敏感)。观察一下所有相关的文件、文件夹是如何展示在搜索结果窗口中的。

4.Click on the Save Search button (the one with the star icon) and name your search as Palm.
4.点击Save Search(保存搜索)按钮(就是在搜索栏最右边的一个五角星形状的东东),并将搜索条命名为“Palm”。(3、4步如下图所示)。
5.We could filter our search results by tag or file type. Click the Search by Type button (the one with a circle, triangle, and square) and select only the Models and Textures categories. You can select multiple options by holding Ctrl (Windows) or Command (Mac).
5.我们可以根据标签和文件类型,进一步过滤搜索的结果,点击Search by Type(通过类型寻找)按钮(就是五星旁边,有三角、圆圈、正方组合而成的形状的按钮),在下拉菜单中,仅选择Models和Textures两个内容。你可以通过按住Ctrl键(windows)或是Command(Mac)进行多选。

6.Click on the Save Search button and save it as a new filter (name it Palm Models and Textures ).
6.这个时候,再点击Save Search按钮,保存你当前的新过滤搜索。(命名为: Palm Models and Textures)。

7. Browse through the other filters saved in Favorites—they are shortcuts to browse through specific file types (All Materials, All Models, and so on).
7.浏览Favorites下浏览其他被保存的过滤搜索,他们是根据特殊的文件类型进行浏览搜索的快捷方式(比如All Materials, All Models,等等)。
How it works...(工作原理)
Custom packages are commonly used to distribute a number of assets inside a single compressed file. As they are made by third parties, the content inside those packages may vary, as they can include scripts, 3D models, texture maps, materials and any other file handled by Unity. Once imported, the package content is uncompressed into your project's Assets folder, and can be accessed through the Project window.
Custom packages 一般用来将大量的资源分配进一个单一的压缩文件之中。这些包往往由第三方制作的,内涵很多种资源,比如3D模型、贴图、材质和其他unity可识别操作的文件。当你导入的时候,包里的内容就被解压到你项目里的资源文件夹下,并且你可以通过项目窗口获得、使用它们。
There's more...(更多)
Unity's new browsing system scans through the assets and lets you save and organize your search results
Unity新的浏览搜索系统可以快速查阅所有资源,让你保存和组织你寻找到的内容

本帖被以下画板推荐:

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

本版积分规则

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