This page has been translated automatically.
Setting Up Development Environment
High-Level Systems
UUSL (Unified UNIGINE Shader Language)
File Formats
Rebuilding the Engine and Tools
Double Precision Coordinates
Common Functionality
Controls-Related Classes
Engine-Related Classes
Filesystem Functionality
GUI-Related Classes
Math Functionality
Node-Related Classes
Networking Functionality
Pathfinding-Related Classes
Physics-Related Classes
Plugins-Related Classes
Rendering-Related Classes
Warning! This version of documentation is OUTDATED, as it describes an older SDK version! Please switch to the documentation for the latest SDK version.
Warning! This version of documentation describes an old SDK version which is no longer supported! Please upgrade to the latest SDK version.


GUI is a flat GUI object that is positioned in the world and to which different widgets are assigned to be displayed.

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 Guiclass.

Post-process filters can be applied to a flat GUI object (for example, motion blur or any other).

See also

Creating GUI

You can add a GUI via UnigineEditor and then assign a widget to it via UnigineScript.

To add the GUI:

  1. Run UnigineEditor
  2. On the Menu bar, click Create -> Effects -> GUI.

  3. Place the created GUI in the world and specify the required parameters for it.
  4. In the script, get the GUI via the engine.editor.getNodeByName()(orengine.editor.getNode()if the node index is known) and assign a widget to it by using functions of theObjectGuiclass.

Editing GUI

On the Gui tab of the Nodespanel, you can adjust the following parameters of the GUI:

A Gui tab
Billboard Indicates if the GUI is rendered as a billboard.
Billboard is unchecked
Billboard is checked
Background Indicates if the GUI background (black screen) should be rendered.
Depth test Indicates if the depth test should be used for the GUI object.
Mouse show Indicates if the mouse cursor should be rendered in the GUI object.
Control distance Distance at which the GUI object becomes controllable.
Polygon offset Offset of the GUI above the background. This parameter is set to avoid z-fighting.
Physical width Width of the GUI in units.
Physical height Height of the GUI in units.
Screen width Width of the GUI in pixels.
Screen height Height of the GUI in pixels.
Last update: 2017-07-03
Build: ()