Unity supports many different types of assets and most common image file types, including BMP, TIFF, TGA, JPG, and PSD.
If you save layered Photoshop (.psd) files in your Assets
folder, Unity imports them as flattened images. You can find out more about importing images as textures, or importing images as sprites.
For the full list of Unity’s built-in importers, supported file types and supported filename extensions, see Built-in importers.
下面列出了您在开始使用 Unity 时可能想要使用的一些更常见的资源类型,以及进一步了解如何使用的链接。
Type | 描述 |
---|---|
3D 模型文件 | Unity supports the FBX file format, which means that you can import data from any 3D modeling software that supports FBX. Unity also natively supports importing SketchUp files. For a list of 3D modeling software that Unity supports, see Model file formats. 3D Model files can contain many types of asset, such as meshes, animation, materials and textures. For more information about importing 3D model files, see Importing Models. Unity also supports SketchUp and SpeedTree formats. |
图像文件 | Unity imports image files as textures. Unity supports most common image file types, such as BMP, TIF, TGA, JPG, and PSD. If you save your layered Photoshop (.psd) files in your Assets folder, Unity imports them as flattened images. Read more about importing textures. |
** 音频文件|Unity supports many audio file formats. It’s generally best to import uncompressed audio file formats such as .wav or .aiff , because during import Unity applies the compression settings specified in your import settings. Read more about importing audio files.|
|Text、HTML、XML、JSON|Unity 可以从文件中导入任意数据,允许您存储和使用来自外部源的数据。这些都由文本资产导入器 处理。|
|插件和与代码相关的资源|You can drop managed and native plug-ins into your Unity project as assets (such as .dll files) to expand the functionality of your game or app. Unity also supports assembly definitions to help you create and organize your scripts into assemblies.|
|本机资源** |
There are a range of asset types that are native to the Unity Editor. You can create assets of these types using Editor features. When you create these, Unity saves the files which represent them as asset files in the Assets folder of your project. These include animations, curves, gradients, masks, materials, and presets. For the full list, see the NativeFormatImporter type in the Built-in Importer list below. |
通过 Unity Package Manager (UPM) 可将各种资源(包括插件、工具和库)直接安装到 Unity 中。这些是新的资源包类型,可通过 Package Manager 窗口获取。有关常规资源包的更多信息,请参阅资源包文档。
在构建游戏时,Unity 会存储有关资源的大量元数据,例如导入设置、其他资源的链接以及其他信息。如果要将资源转移到其他项目并保留所有此类信息,可将资源导出到以下容器之一:
Did you find this page useful? Please give it a rating:
Thanks for rating this page!
What kind of problem would you like to report?
Thanks for letting us know! This page has been marked for review based on your feedback.
If you have time, you can provide more information to help us fix the problem faster.
Provide more information
You've told us this page needs code samples. If you'd like to help us further, you could provide a code sample, or tell us about what kind of code sample you'd like to see:
You've told us there are code samples on this page which don't work. If you know how to fix it, or have something better we could use instead, please let us know:
You've told us there is information missing from this page. Please tell us more about what's missing:
You've told us there is incorrect information on this page. If you know what we should change to make it correct, please tell us:
You've told us this page has unclear or confusing information. Please tell us more about what you found unclear or confusing, or let us know how we could make it clearer:
You've told us there is a spelling or grammar error on this page. Please tell us what's wrong:
You've told us this page has a problem. Please tell us more about what's wrong:
Thank you for helping to make the Unity documentation better!
Your feedback has been submitted as a ticket for our documentation team to review.
We are not able to reply to every ticket submitted.