Choose your operating system:
Windows
macOS
Linux
本页面介绍如何使用Datasmith将内容从支持的3D设计应用程序或文件格式导入到虚幻引擎中。
先决条件:
对于Datasmith支持的大多数文件格式,无需在计算机上安装任何其他软件。只要导入所需的文件即可。但以下文件格式有特定要求:
.wire - 要用Datasmith导入 .wire 文件,必须装有与 .wire 文件兼容的Autodesk Alias AutoStudio版本。
步骤
在虚幻编辑器中,打开Datasmith内容要导入到的项目。
若要将内容导入项目中的现有关卡,立即打开该关卡。否则,创建新关卡,或使用默认关卡。
在主工具栏中,找到 Datasmith 按钮:
若未在工具栏中看到此按钮,则需要为准备使用的源文件类型启用Datasmith导入插件。参见下面的项目设置。
在 导入(Import) 窗口中,浏览到并选择要导入的文件。单击 打开(Open)。
在项目内容中为Datasmith选择文件夹来放置新导入的资源。
若要为Datasmith内容创建新文件夹,右键单击此窗口中的现有文件夹。
使用 Datasmith导入选项(Datasmith Import Options) 窗口选择要从源文件导入的内容类型,并设置控制导入过程的可选额外参数。
此处可设置的选项取决于要导入文件的类型。详情参见Datasmith导入选项。单击 导入(Import)。Datasmith读取源文件,在项目中创建新资源,并将Datasmith场景放入当前关卡中。有关该过程的详情,参见Datasmith概述。
也可以用Python通过Datasmith自从处理导入文件。更多详情,请参见自定义Datasmith导入流程。
项目设置
Datasmith提供多个不同的导入器来支持不同类型的源文件和设计应用程序。这些导入器都封装不同的可选插件中。根据想要用Datasmith导入的文件类型,可能需为虚幻引擎项目启用一个或多个额外插件。
若有 .gltf 文件,启用 导入器(Importers)> Datasmith glTF导入器(Datasmith glTF Importer) 插件。
若有 .ifc 文件,启用 导入器(Importers)> Datasmith IFC导入器(Datasmith IFC Importer) 插件。另参见使用Datasmith和IFC文件。
若有 .c4d 文件,启用 导入器(Importers)> Datasmith C4D导入器(Datasmith C4D Importer) 插件。另参见使用Datasmith和Cinema 4D。
若有从VRED或Deltagen导出的 .fbx 文件,启用 导入器(Importers)> Datasmith FBX导入器(Datasmith FBX Importer) 插件。另参见使用Datasmith和Deltagen与VRED。
若有从Autodesk 3ds Max、Revit或SketchUp Pro等应用程序导出的 .udatasmith 文件,启用 导入器(Importers)> Datasmith导入器(Datasmith Importer) 插件。另参见使用Datasmith和3ds Max、使用Datasmith和SketchUp Pro、使用Datasmith和Rhino、使用Datasmith和Revit。
对于所有其他文件格式,启用 导入器(Importers)> Datasmith CAD导入器(Datasmith CAD Importer) 插件。另参见使用Datasmith和CAD文件格式。
关于Datasmith支持的所有应用程序和文件格式的完整列表,请参见Datasmith支持的软件和文件类型。
若从 建筑、工程和施工(Architecture, Engineering, and Construction) 或 汽车、产品设计和制造(Automotive, Product Design, and Manufacturing) 类别中的一个模板启动了项目,可能已启用上述部分或全部插件。