UnigineEditor
界面概述
设置和首选项
项目开发
调整节点参数
Setting Up Materials
Setting Up Properties
照明
Landscape Tool
Sandworm (Experimental)
使用编辑器工具执行特定任务
Extending Editor Functionality
编程
基本原理
搭建开发环境
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

资产工作流程

The Asset System aims to unify file management within the UNIGINE project and make it simple and intuitive. For this purpose the content of the project is represented as a collection of "building blocks" - assets, and the whole workflow is organized around them. 资产系统旨在统一UNIGINE项目中的文件管理并使之简单直观。为此,项目的内容表示为“构建块”(资产)的集合,整个工作流围绕它们进行组织。

Asset is the "unit of work", it represents any item that can be used in your world or project. An asset may come from a file created using a third-party application, such as a 3D model, an audio file, an image, or any other type supported by the UNIGINE Engine. Assets can also be created using the UnigineEditor, e.g., a node, a material, or a property. 资产是“工作单元”,它表示可以在您的世界或项目中使用的任何项目。资产可能来自使用第三方应用程序创建的文件,例如3D模型,音频文件,图像或UNIGINE Engine支持的任何其他类型。也可以使用UnigineEditor创建资产,例如节点,材料或属性。

Each asset is represented by a pair: a file on disk, and a *.meta metadata file which stores auxiliary information for this asset including a GUID (globally unique identifier). A GUID identifies a path to the asset (i.e., location of the asset in the project) and is used by the Asset System to keep all links and dependencies between the resources regardless of their name and location within the project. So, you don’t have to worry that your material will lose a texture when you change its name.每个资产由一对表示:磁盘上的文件和*.meta元数据文件,该元数据文件存储该资产的辅助信息,包括GUID (globally unique identifier)。 GUID标识了资产的路径(即资产在项目中的位置),资产系统使用该GUID来保持资源之间的所有链接和依赖关系,而不管资源的名称和位置在项目中如何。因此,您不必担心更改名称时材料会丢失纹理。

Another important feature of the Asset System is real-time tracking of changes. You can modify your assets at any time after importing, the Asset System will notice when you save new changes to the file and will re-import it as necessary.资产系统的另一个重要功能是实时跟踪更改。您可以在导入后随时修改资产,资产系统会在您将新更改保存到文件时通知您,并将在必要时重新导入。

All assets are stored in the data folder of your project. For all assets, that are in non-native format (e.g. .fbx, .obj, .hdr, etc.) the Editor automatically generates all resources to be used by the UNIGINE Engine at run time. Such files are called runtime files.所有资产都存储在项目的 data 文件夹中。对于所有非本机格式的资产(例如.fbx, .obj, .hdr等),编辑器会在运行时自动生成将由UNIGINE Engine使用的所有资源。这样的文件称为 运行时文件

注意
Runtime files are generated automatically and stored in the data/.runtimes folder of your project.运行时文件是自动生成的,并存储在项目的 data/.runtimes 文件夹中。

Relationship between the contents of the data folder in your project's root on your computer, and the Project folder in the Asset Browser windowRelationship between the contents of the data folder in your project's root on your computer, and the Project folder in the Asset Browser window
Relationship between the contents of the data folder in your project's root on your computer, and the Project folder in the Asset Browser window

Relationship between the contents of the data folder in your project's root on your computer, and the Project folder in the Asset Browser window计算机上项目根目录中data文件夹的内容与Asset Browser窗口中Project文件夹之间的关系

The entire workflow will revolve around the Asset Browser, and the regular file explorer should no longer be necessary when working on a UNIGINE project. In fact, the goal of this feature is for users of UNIGINE to ignore what lies on the disk completely and only interact with their project's content via the Editor.整个工作流程将围绕 Asset Browser ,并且在UNIGINE项目上工作时,常规文件浏览器将不再是必需的。实际上,此功能的目标是使UNIGINE的用户完全忽略磁盘上的内容,仅通过编辑器与其项目内容进行交互。

Asset Browser资产浏览器 (Asset Browser)#

The main front-end tool of the Asset System is the Asset Browser. It is used to organize content in your project: create, import, view, rename your assets, move them between the folders and manage their hierarchy.资产系统的主要前端工具是资产浏览器。它用于组织项目中的内容:创建,导入,查看,重命名资产,在文件夹之间移动它们并管理其层次结构。

注意
The simplest way to safely move or rename your assets is to always do it using the Asset Browser. In this case the Asset System will keep all links and dependencies between the resources.安全移动或重命名资产的最简单方法是始终使用资产浏览器进行 操作。在这种情况下,资产系统将保留资源之间的所有链接和依赖性。

The Asset Browser is accessible from the Window menu.可从 Window 菜单访问资产浏览器。

Asset Browser window资产浏览器窗口

Folder View Panel文件夹查看面板#

Folder View panel is located on the left side of the Asset Browser interface. It contains a list of all folders within your project.There are two root folders available: 文件夹视图面板位于资产浏览器界面的左侧。它包含项目中所有文件夹的列表。有两个根文件夹可用:

  • Project folder - contains the data stored in the data folder of the project root. It is the folder where all work with the project content is performed. Project文件夹-包含存储在项目根目录的data文件夹中的数据。这是执行项目内容所有工作的文件夹。
  • Core folder - contains the built-in core assets. These assets are available for every project by default.
    注意
    Core assets are read-only.Core assets are read-only.
    Core assets are read-only.
    Core文件夹-包含内置核心资产。默认情况下,这些资产可用于每个项目。
    注意
    Core assets are read-only.核心资产是只读的。

When a folder is selected from the list by clicking, its contents will be shown in the Main panel to the right. You can use small triangle next to the folder to expand or collapse it, displaying any nested folders it contains.通过单击从列表中选择一个文件夹时,其内容将显示在右侧的主面板中。您可以使用文件夹旁边的小三角形来展开或折叠它,显示其中包含的任何嵌套文件夹。

Main Panel主面板#

Main panel in the center of the Asset Browser window displays icons for all assets in the selected project folder after applying all selected filters. You can select the types of assets to be displayed using the Filter dropdown at the top of the panel.应用所有选定的过滤器后,“资源浏览器”窗口中心的 主面板显示所选项目文件夹中所有资产的图标。您可以使用面板顶部的Filter下拉菜单选择要显示的资产类型。

The assets available in the Asset View can be dragged directly into the editor viewport.资产视图中可用的资产可以直接拖到编辑器视口中。

You can create a new folder, material or property by right-clicking somewhere within the panel and choosing the desired item from the context menu (or you can use the Create button in the top-right corner). The list of assets can be navigated by using the scroll bar or rotating the mouse wheel.可以通过右键单击面板中的某个位置并从上下文菜单中选择所需的项目来创建新的文件夹,材质或属性(或者可以使用右上角的Create按钮)。资产列表可以通过使用滚动条或旋转鼠标滚轮来导航。

The icons can be resized using the slider at the bottom of the panel; they will be replaced by a hierarchical list view if the slider is moved to the extreme left.可以使用面板底部的滑块调整图标的大小。如果将滑块移到最左端,则将它们替换为分层列表视图。

To show the asset file location in the standard file browser window, right-click on the asset and choose Show in Explorer.要在标准文件浏览器窗口中显示资产文件位置,请右键单击资产,然后选择Show in Explorer

You can also search the required asset among all assets of the project (including the ones stored in the core folder). In the Search field, start typing the asset name: all assets that fulfil search conditions will be displayed.您还可以在项目的所有资产(包括存储在core文件夹中的资产)中搜索所需的资产。在Search字段中,开始输入资产名称:将显示所有符合搜索条件的资产。

Preview Panel预览面板#

Preview panel is located on the right side of the Asset Browser interface. It displays the preview of the asset selected in the Main panel depending on its type. 预览面板位于资产浏览器界面的右侧。它会根据类型显示在“主”面板中选择的资产的预览。

3D Geometry Material Texture

3D geometry Asset (such as .mesh, .node, .fbx) is shown in a test environment with default mesh_base base material applied. 3D几何资产(例如.mesh, .node, .fbx)在测试环境中显示,默认环境中应用了mesh_base基础材料。

You can rotate the model with a mouse, holding the left button pressed, and scale it with the mouse wheel.您可以按住鼠标左键并用鼠标滚轮缩放模型。

Material asset is shown as applied to a primitive (Sphere, Material Ball, Box, Capsule, Cylinder, Dodecahedron, or Icosahedron).显示的材料资产已应用于基本体(球体,材料球,盒子,胶囊,圆柱体,十二面体或二十面体)。

You can rotate the primitive with a mouse, holding the left button pressed, and scale it with the mouse wheel.可以使用鼠标旋转图元,同时按住向左键,然后使用鼠标滚轮缩放它。

A texture asset is shown as an image, with information and controls at the top of the panel. These controls are used to select Red, Green, Blue and Alpha channels and MipMapping level.纹理资产显示为图像,信息和控件位于面板顶部。这些控件用于选择红色,绿色,蓝色和Alpha通道以及MipMapping级别。

You can move the image with a mouse, holding the left button pressed, and scale it with the mouse wheel.您可以按住鼠标左键并用鼠标滚轮缩放图像。

Audio player is displayed for an audio asset. Previews for other asset types are displayed as icons.顯示 音頻資產 的音頻播放器。 其他資產類型的預覽顯示為圖標。

最新更新: 2020-11-24