输出节点
Any part of the scene (both a single node or a group of nodes including all children) can be exported from UnigineEditor and saved to a .node, .mesh or .fbx file.场景的任何部分(单个节点或包含所有子节点的一组节点)都可以从UnigineEditor导出,并保存为.node、.mesh或.fbx文件。
Exporting Nodes to a NodeReference导出节点到NodeReference#
Any node (or nodes) from the World Hierarchy can be exported to a Node Reference. Exporting a node to a Node Reference may be required, for example, if you want to implement instancing of nodes in your project.World Hierarchy中的任何节点(或多个节点)都可以导出到 Node Reference。例如,如果您想在项目中实现节点的实例化,则可能需要将节点导出到Node Reference。
To export a node to a .node file, right-click the target node in the World Hierarchy window and choose Create a NodeReference in the drop-down list.要将节点导出到.node文件,在World Hierarchy窗口中右键单击目标节点,并在下拉列表中选择Create a NodeReference。
Another way to export a node (nodes) is to select it in any available way and choose Edit -> Convert To NodeReference in the Menu Bar. In both cases, the selected node will be converted to NodeReference, and the .node file named after the node will be created.导出节点的另一种方法是以任何可用的方式选择它,并在菜单栏中选择Edit -> Convert To NodeReference。在这两种情况下,选中的节点都将被转换为NodeReference,并且将创建以该节点命名的.node文件。
If you select several nodes, they will be exported to a single .node file as child nodes of the Dummy Node.如果选择了几个节点,它们将作为Dummy Node的子节点导出到单个.node文件中。
The exported node will be saved in local coordinates (relative to the zero of coordinates or to the parent node, if any).导出的节点将保存在本地坐标中(相对于坐标零或父节点,如果有的话)。
Exporting Nodes to a Mesh导出节点到Mesh#
Exporting nodes to a mesh may be required, for example, when you have several mesh-based nodes, and you want to get them as a single mesh.可能需要将节点导出到网格,例如,当您有多个基于网格的节点,并且希望将它们作为单个网格时。
Nodes of the following object-related types can be exported to the .mesh file:以下对象相关类型的节点可以导出到.mesh文件:
To export a node to a .mesh file, right-click the target node in the World Hierarchy window and choose Export to -> UNIGINE Mesh file (.mesh) in the drop-down list.要将节点导出到.mesh文件,请右键单击World Hierarchy窗口中的目标节点,并在下拉列表中选择Export to -> UNIGINE Mesh file (.mesh)。
The exported mesh can be used, for example, to create a mesh-based node.例如,可以使用导出的网格创建一个 mesh-based节点。
Exporting Nodes to FBX导出节点到FBX#
Exporting nodes to an .fbx file provides a wide range of use cases for artists: for example, after exporting the scene you can bake lightmaps with the 3rd-party tool (for example, V-Ray).将节点导出到.fbx文件为艺术家提供了广泛的用例:例如,在导出场景后,您可以使用第三方工具(例如,V-Ray)烘烤光照图。
Nodes of the following types can be exported to the .fbx file:以下类型的节点可以导出到.fbx文件:
- Static Mesh
- Skinned Mesh
- Dynamic Mesh
- Node Reference
- World Spline GraphWorld Spline Graph
- 所有玩家
- All light sources except Environment Probe and Voxel Probe除 Environment Probe 和 Voxel Probe 之外的所有光源。
- When exporting a static or dynamic mesh that has more than one surface with the same material, a separate mesh for each surface will be created and saved in the FBX container.当导出具有多个具有相同材质的表面的静态或动态网格时,将为每个表面创建一个单独的网格并将其保存在 FBX 容器Б中。
- When exporting a Node Reference, the node stored by the reference (in the .node file) will be exported.当出口Node Reference,节点存储的参考(.node文件)将被导出。
To export a node to an .fbx file, right-click the target node in the World Hierarchy window and choose Export to -> FBX in the drop-down list.要将节点导出到.fbx文件,请右键单击World Hierarchy窗口中的目标节点,并在下拉列表中选择Export to -> FBX。
The following window will open:以下窗口将被打开:
Name | Name of the target FBX file.目标FBX文件的名称。 |
---|---|
Destination | Destination folder for the generated FBX file.生成的FBX文件的目标文件夹。 |
Save root transform |
Preserve current transformations, when exporting selection to FBX. Uncheck to have your FBX content located at the origin (0,0,0) with default orientation.在将选择导出到FBX时,保留当前的转换。取消选中将使你的FBX内容以默认方向位于原点(0,0,0)。
|
Embed textures | Embed currently assigned textures into the target FBX file together with the geometry.嵌入当前分配的纹理到目标FBX文件连同几何形状。 |
Separate surfaces into meshes | Split all surfaces into separate meshes inside the target FBX container.所有表面分割成单独的网格内目标FBX容器。 |
Overwrite file if name matches | Overwrite the target file having a name that matches the specified one.覆盖名称与指定名称匹配的目标文件。 |
You can export both a single node or nodes hierarchy tree branch. However, exporting to FBX is available only if one node in the hierarchy is selected. To export the hierarchy tree branch, select and export the parent node: the child nodes will be exported as well. If you need to export the whole scene or its part, the nodes should be added as children to a Dummy or Layer node in the hierarchy.您可以导出一个节点或节点层次结构树分支。然而,出口FBX是可用的选择只有一个节点的层次结构。出口层次树分支,选择父节点和出口:子节点将被导出。如果你需要出口整个场景或其部分,孩子到时的节点应该添加Dummy或Layer节点的层次结构。