This page has been translated automatically.
视频教程
界面
要领
高级
实用建议
基础
专业(SIM)
UnigineEditor
界面概述
资源工作流程
Version Control
设置和首选项
项目开发
调整节点参数
Setting Up Materials
设置属性
照明
Sandworm
使用编辑器工具执行特定任务
如何擴展編輯器功能
嵌入式节点类型
Nodes
Effects
Decals
光源
Geodetics
World Nodes
Sound Objects
Pathfinding Objects
Players
编程
基本原理
搭建开发环境
使用范例
C++
C#
UnigineScript
统一的Unigine着色器语言 UUSL (Unified UNIGINE Shader Language)
Plugins
File Formats
材质和着色器
Rebuilding the Engine Tools
GUI
双精度坐标
应用程序接口
Animations-Related Classes
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
VR-Related Classes
创建内容
内容优化
材质
Material Nodes Library
Miscellaneous
Input
Math
Matrix
Textures
Art Samples
Tutorials

GUI

GUI is a flat GUI object that is positioned in the world and to which different widgets are assigned to be displayed.GUI是一个平面GUI对象,位于世界上,并且与该对象不同小部件被分配显示。

Basically, a flat GUI object is a flat display, on which GUI is rendered. You can interact with such GUI the same way as with GUI created via the Gui class.基本上,平面GUI对象是在其上呈现GUI的平面显示器。您可以使用与通过Gui类创建的GUI相同的方式与此类GUI进行交互。

Post-process filters can be applied to a flat GUI object (for example, motion blur or any other).可以将后处理滤镜应用于平面GUI对象(例如,运动模糊或任何其他对象)。

See also
也可以看看#

Creating GUI
Creating GUI#

You can add a GUI object via UnigineEditor and then assign a widget to it via UnigineScript.您可以通过UnigineEditor添加GUI对象,然后通过UnigineScript为它分配一个小部件。

To add the GUI:要添加GUI

  1. Run the project with UnigineEditor.跑步UnigineEditor的项目。
  2. On the Menu bar, click Create -> GUI -> GUI.在菜单栏上,单击Create -> GUI -> GUI

  3. Place the created GUI in the world and specify the required parameters for it.将创建的GUI放置在世界上,为其指定所需的参数
  4. In the code, get the GUI via the World.getNodeByName() (or World.getNodeByID() if the node index is known) and assign a widget to it by using functions of the ObjectGui class.在代码中,通过World.getNodeByName()(或World.getNodeByID(),如果知道节点索引)获取GUI,并使用ObjectGui类的函数为其分配小部件。

Editing GUI
Editing GUI#

In the Node tab of the Parameters window, you can adjust the following parameters of the GUI object:Parameters窗口的Node选项卡中,可以调整GUI对象的以下参数:

Node tabNode标签
Billboard

Indicates if the GUI is rendered as a billboard.指示GUI是否呈现为广告牌。

Billboard is disabledBillboard已禁用
Billboard is enabledBillboard已启用
Background Indicates if the GUI background (black screen) should be rendered.指示是否应渲染GUI背景(黑屏)。
Depth Test Indicates if the depth test should be used for the GUI object.指示是否应将深度测试用于GUI对象。
Show Mouse Indicates if the mouse cursor should be rendered in the GUI object.指示是否应在GUI对象中呈现鼠标光标。
Control Distance Distance at which the GUI object becomes controllable.GUI对象变为可控制的距离。
Polygon Offset Offset of the GUI above the background. This parameter is set to avoid z-fighting.背景上方的GUI的偏移量。设置此参数可避免Z战。
Physical Width Width of the GUI in units.GUI的宽度(单位)。
Physical Height Height of the GUI in units.GUI的高度(单位)。
Screen Width Width of the GUI in pixels.GUI的宽度(以像素为单位)。
Screen Height Height of the GUI in pixels.GUI的高度(以像素为单位)。
最新更新: 2024-08-16
Build: ()