This page has been translated automatically.
视频教程
界面
要领
高级
实用建议
UnigineEditor
界面概述
资产工作流程
设置和首选项
项目开发
调整节点参数
Setting Up Materials
Setting Up Properties
照明
Landscape Tool
Sandworm
使用编辑器工具执行特定任务
Extending Editor Functionality
嵌入式节点类型
Nodes
Objects
Effects
Decals
光源
Geodetics
World Objects
Sound Objects
Pathfinding Objects
Players
编程
基本原理
搭建开发环境
Usage Examples
UnigineScript
C++
C#
UUSL (Unified UNIGINE Shader Language)
File Formats
Rebuilding the Engine Tools
GUI
双精度坐标
应用程序接口
Containers
Common Functionality
Controls-Related Classes
Engine-Related Classes
Filesystem Functionality
GUI-Related Classes
Math Functionality
Node-Related Classes
Objects-Related Classes
Networking Functionality
Pathfinding-Related Classes
Physics-Related Classes
Plugins-Related Classes
IG Plugin
CIGIConnector Plugin
Rendering-Related Classes
创建内容
Content Optimization
Materials
Art Samples
Tutorials
注意! 这个版本的文档是过时的,因为它描述了一个较老的SDK版本!请切换到最新SDK版本的文档。
注意! 这个版本的文档描述了一个不再受支持的旧SDK版本!请升级到最新的SDK版本。

创建节点

A world in UNIGINE is a scene that includes a set of different built-in objects with certain parameters. All objects added to the world are called nodes. Nodes can be of different types, determining their visual representation and behavior. Some node types appear visually and have surfaces to represent their geometry (mesh), such as Objects, Decals, and Effects. Other nodes (Light Sources, Players, etc.) are invisible. UNIGINE中的世界是一个场景,其中包含一组带有特定参数的不同内置对象。 所有添加到世界上的对象称为节点。节点可以是不同类型,可以确定其视觉表示和行为。 一些节点类型在视觉上显示并具有表示其几何形状(网格)的表面,例如对象贴图效果。其他节点(光源播放器等)不可见。

There are a number of ways you can add nodes to your world. You can create them using the UnigineEditor's functions as described in this article. You can also create nodes at runtime via code.您可以通过多种方式将节点添加到您的世界中。您可以按照本文中所述使用UnigineEditor的功能创建它们。您也可以通过代码在运行时创建节点

Creating Nodes of Built-In Types创建内置类型的节点#

UNIGINE provides a set of diverse built-in node types that can be used to represent virtually any object or phenomenon present in real life. These node types are formed into several groups. UNIGINE提供了一组内置节点类型,这些节点类型可用于表示现实生活中的几乎所有对象。这些节点类型分为几组。

You can create a node of any built-in type by selecting the corresponding item in the Create menu and specifying necessary parameters.您可以通过在Create菜单中选择相应的项目并指定必要的参数来创建任何内置类型的节点。

注意
Before creating nodes you have to create a world or open an existing one, otherwise the Create menu will be disabled.在创建节点之前,您必须先创建一个世界或打开一个现有的世界,否则将禁用Create菜单。
创建过程和每个用户可用的参数列表内置节点类型在Built-In Node Types section.

Standard Primitives标准基元#

UNIGINE lets you add any 3D model created in a third party digital content creation tool via the FBX import option. Apart from that it offers you a set of standard primitives that might be useful as test objects or in block design. This set includes the following types: Box, Sphere, Plane, Cylinder, and Capsule. UNIGINE使您可以通过 FBX导入选项添加在第三方数字内容创建工具中创建的任何3D模型。除此之外,它还为您提供了一组标准原语,这在某些情况下可能会有所帮助。此集合包括以下类型:Box, Sphere, Plane, CylinderCapsule

These primitives can be used either as placeholders and prototypes, or to create world objects with a simple shape (e.g., a plane is commonly used as a flat ground surface).这些原语可用作占位符和原型,或用于创建具有简单形状的世界对象(例如,通常将平面用作平坦的地面)。

You can create any primitive by choosing the corresponding item in the Create -> Primitives menu.您可以通过在Create -> Primitives菜单中选择相应的项目来创建任何原始类型。

When creating a standard primitive, specify its geometry parameters in the window that opens, as for the Box: 创建标准图元时,将显示带有参数的窗口,如下图所示 Box

Creation parameters for the box primitive框图元的创建参数

Having specified the primitive's parameters and clicking OK you confirm its creation. You can also click Cancel to abort. 指定了原语的参数,然后单击OK确认其创建。您也可以点击取消中止。

On confirmation, the Editor switches to the Snap to Surface Mode, so you can specify the position of the new node. 创建完成后,编辑器将切换到Snapping to Surface Mode,以便您可以指定新节点的位置。

Snap to Surface Mode转到表面模式

Box#

The Box primitive provides a simple geometry for representing boxes and cubes. It has the following parameters:图元提供了用于表示框和立方体的简单几何形状。它具有以下参数:

X, Y, Z dimensions along the X, Y, and Z axes.沿X,Y和Z轴的尺寸。

Creation of a primitive produces a corresponding .mesh asset generated based on the specified parameters in the current directory of the Asset Browser window. The primitive shall be created as a Static Mesh.应将具有指定大小的框创建为Static Mesh

Sphere领域#

The Sphere primitive provides a simple geometry for representing balls and spheres. The sphere has the following parameters:球体图元提供了用于表示球和球体的简单几何形状。 球体具有以下参数:

Diameter diameter of the sphere.球体的纬度和纵向边缘的数量,从右到左从上到下。增大此值可通过添加其他面来提高球体的平滑度。
Segments number of the latitudinal and longitudinal edges of the sphere running from top to bottom from right to left. Increasing this value enhances the smoothness of the sphere by adding extra facets.从右到左从上到下延伸的球体的纬度和纵向边缘数。 增加此值可通过添加额外的小平面来提高球体的平滑度。

具有指定参数的球体应创建为Static Mesh

Plane飞机#

The Plane primitive provides a flat polygon mesh for representing ground and surfaces. The plane has the following parameters:平面图元提供了用于表示地面和曲面的平面多边形网格。 该平面具有以下参数:

X, Y dimensions along the X and Y axes. 数个将平面的表面切割成多个小平面的纵向和横向边缘。
Segments number of the lengthwise and transversal edges cutting the surface of the plane into facets. 将平面的表面切割成多个小平面的纵向和横向边缘的数量。

具有指定段数和大小的平面应创建为Static Mesh

Cylinder圆柱#

The Cylinder primitive can be used to represent cylinders and tubes. The cylinder has the following parameters:圆柱圆柱图元可用于表示圆柱和管。圆柱体具有以下参数:

Diameter diameter of the cylinder.沿Z轴的尺寸。
Height dimension along the Z axis. 从上到下切割圆柱的横向边缘数。
Stacks number of latitudinal edges cutting the cylinder from top to bottom. 此值确定使用多少个边来定义圆柱体的圆周。边数越大,圆柱体出现越平滑。
Slices this value determines how many edges are used to define the cylinder's circumference. The larger the number of sides, the smoother the cylinder appears.此值确定使用多少个边来定义圆柱体的圆周。 边数越大,圆柱体出现越平滑。

具有指定参数的圆柱体应创建为Static Mesh

Capsule胶囊#

The Capsule primitive provides a geometry for representing capsules or rounded edge tubes. The capsule has the following parameters:胶囊图元提供了用于表示胶囊或圆形边缘管的几何形状。 胶囊具有以下参数:

Diameter diameter of the capsule.沿Z轴的 尺寸。
Height dimension along the Z axis. 从顶部到底部切割胶囊的横向边缘数。其中一个由胶囊的身体保留,另一个分布在瓶盖之间。确定胶囊盖的光滑度。
Stacks number of latitudinal edges cutting the capsule from top to bottom. One of them is reserved by the capsule's body and the other are distributed between the caps. Determines the smoothness of the capsule's caps. 此值确定使用多少条边来定义胶囊主体的周长。还决定了胶囊的光滑度。
Slices this value determines how many edges are used to define the circumference of the capsule's body. Also determines the smoothness of the capsule.此值确定使用多少条边来定义胶囊主体的周长。 还决定了胶囊的光滑度。

一个具有指定参数的胶囊将被创建为Static Mesh

Creating Nodes via Asset Browser通过资产浏览器创建节点#

A node can be created by simply dragging an asset from the Asset Browser either to the Editor Viewport or to the World Nodes window. Asset type determines the type of the node (or hierarchy of nodes) that will be created.只需将资产从 资产浏览器 拖动到 Editor视口World Nodes窗口即可创建节点。资产类型确定将要创建的节点的类型(或节点的层次结构)。

Drag-and-drop creation of nodes is supported for the following types of assets:以下类型的资产支持拖放创建节点:

  • .node - built-in asset type which contains any node (or a hierarchy of nodes) exported from the UNIGINE world previously.

    This type of asset produces a Node Reference by default. You can change the type of node, that will be created by right-clicking on the asset in the Asset Browser window and selecting a corresponding item in the context menu:This type of asset produces a Node Reference by default. You can change the type of node, that will be created by right-clicking on the asset in the Asset Browser window and selecting a corresponding item in the context menu:

    • Place as Node Reference will create a Node Reference.Place as Node Reference will create a Node Reference.
    • Place as Node Layer will create a node of the Node Layer type.Place as Node Layer will create a node of the Node Layer type.
    • Place as Node Content will import the contents of the *.node file, which can be a Static Mesh or any other node type, as well as a hierarchy of nodes.Place as Node Content will import the contents of the *.node file, which can be a Static Mesh or any other node type, as well as a hierarchy of nodes.
    This type of asset produces a Node Reference by default. You can change the type of node, that will be created by right-clicking on the asset in the Asset Browser window and selecting a corresponding item in the context menu:Place as Node Reference will create a Node Reference.Place as Node Layer will create a node of the Node Layer type.Place as Node Content will import the contents of the *.node file, which can be a Static Mesh or any other node type, as well as a hierarchy of nodes.
    .node-内置资产类型,它包含以前从UNIGINE项目导出的任何节点(或节点的层次结构)。

    This type of asset produces a Node Reference by default. You can change the type of node, that will be created by right-clicking on the asset in the Asset Browser window and selecting a corresponding item in the context menu:这种类型的资产默认情况下会产生Node Reference。您可以更改节点的类型,可以通过在 Asset Browser 窗口中右键单击资产并在上下文菜单中选择相应的项目来创建:

    • Place as Node Reference will create a Node Reference. Place as Node Reference将创建一个Node Reference
    • Place as Node Layer will create a node of the Node Layer type. Place as Node Layer将创建Node Layer类型的节点。
    • Place as Node Content will import the contents of the *.node file, which can be a Static Mesh or any other node type, as well as a hierarchy of nodes. Place as Node Content将导入*.node文件的内容,该文件可以是Static Mesh或任何其他 节点类型,以及节点的层次结构。
  • .mesh - built-in asset type that describes static and skinned geometry.

    This type of asset produces a Static Mesh or a Skinned Mesh if the asset stores animation data as well.This type of asset produces a Static Mesh or a Skinned Mesh if the asset stores animation data as well.

    This type of asset produces a Static Mesh or a Skinned Mesh if the asset stores animation data as well.
    .mesh-描述静态和蒙皮几何体的内置资产类型。

    This type of asset produces a Static Mesh or a Skinned Mesh if the asset stores animation data as well.如果该资产还存储动画数据,则该资产会产生Static MeshSkinned Mesh

  • .fbx, .obj, .3ds, .dae - assets that contain 3D models created using a third-party modelling software.

    This type of asset can produce a Static Mesh, a Skinned Mesh or a hierarchy of nodes depending on its contents (cameras, lights. etc.).This type of asset can produce a Static Mesh, a Skinned Mesh or a hierarchy of nodes depending on its contents (cameras, lights. etc.).

    This type of asset can produce a Static Mesh, a Skinned Mesh or a hierarchy of nodes depending on its contents (cameras, lights. etc.).
    .fbx, .obj, .3ds, .dae-包含使用第三方建模软件创建的3D模型的资产。

    This type of asset can produce a Static Mesh, a Skinned Mesh or a hierarchy of nodes depending on its contents (cameras, lights. etc.).这种类型的资产可以根据其内容(相机,灯光等)产生Static Mesh或节点层次结构。

If you drag an asset to the World Nodes window, the created node will be placed right in front of the current camera. While dragging the asset to the Editor Viewport switches the Editor to the Snap to Surface Mode, so you can choose where to place the created node.如果将资产拖动到World Nodes窗口,则创建的节点将放置在当前摄像机的正前方。将资源拖动到 Editor视口时,会将编辑器切换到 捕捉到曲面模式 ,因此您可以选择

Snap to Surface Mode捕捉到表面模式
最新更新: 2021-06-16
Build: ()