2014-08-13 19:22:39|?次阅读|上传:huigezrx【已有?条评论】发表评论
关键词:Unity3D, 游戏, 虚拟现实|来源:唯设编程网
Unity automatically imports assets for you and manages all kinds of metadata for you. How does this all work?
Unity为你自动的导入资产并为你管理所有类型的元数据。这些是如何工作的?
When you place an Asset like a texture in the Assets folder, Unity will first detect that a new file it doesn't know about has been added. A new unique identifier will be given to the asset and Unity will then start importing it. Unity processes every imported asset. When you see a texture in the Project View, this is already a processed asset.
当你放置一个资产像一个纹理在资产文件夹里,Unity将首先到检测一个新文件,它不知道已经被添加。一个新的唯一标识将提供给资产及Unity将开始导入它。Unity处理每个导入的资产。当你在项目视图里看到一个纹理,这是已经被处理过的资产。
This way you can attach a lot of metadata to an imported asset. For example in the texture's import settings you can tell the texture to use mip maps. Photoshop of course doesn't support mip maps, thus the need for metadata. All metadata for each asset is stored in the Library folder. As as user, you should never have to manually alter the Library folder.
这种方式你可以附加许多的元数据去导入资产。例如,在纹理导入设置里你可以告诉所有的纹理使用mip映射。Photoshop当然不支持mip映射,然而,需要元数据。每个资产的所有元数据被存储在Library文件夹里。作为一个用户,你应该从不手工修改Library文件夹。
In Unity you can organize and move Assets around however you like from the Project View. Unity automatically tracks all movements of files and references to other assets. You must move the files inside of Unity. You can easily do this via drag & drop in Project View. But if you move an object in the Explorer (Windows) or Finder (OS X), Unity will not detect the move. It will treat it like as if new asset was created and another one deleted. Thus if you move an asset in the OS file manager, connections to the asset will be lost.
在Unit里,你可以组织和四处移动资产,然而你要从项目视图里。Unity自动的跟踪所有的文件移动和引用其它的资产。你必须在Unity内部移动文件。你可以容易的做这个经由拖放子项目视图里。但是如果你在资源管理器里(windwos)或程序定位器里(OS x)一哦那个一个对象,Unity将不能检测到移动。它将协商就像新的资产被建立或另外一个被删除。因而,如果你移动一个资产在系统文件管理器里,连接到的资产将丢失。
The Library folder is critical to your project. Unity manages the Library folder for you automatically. Thus you should never move files around in it or touch it. But still it is critical to your project. If you delete it, all your connections to assets will be lost.
Library(库)文件夹是对于你的项目是关键的。Unity为你自动管理库文件夹。因而你应该从不四处移动文件在库文件夹里或触动它。但是,它仍旧是对你的项目是关键的。如果你删除了它,所有你的连接到的资产将全部丢失。
When backing up a project, always back up the project folder-level, containing both the Assets and Library folders!
当备份一个项目,总是要备份项目文件夹级别,同时包含Assets(资产) 和Library(库)文件夹!