This page has been translated automatically.
Video Tutorials
Interface
Essentials
Advanced
How To
Professional (SIM)
UnigineEditor
Interface Overview
Assets Workflow
Settings and Preferences
Working With Projects
Adjusting Node Parameters
Setting Up Materials
Setting Up Properties
Lighting
Sandworm
Using Editor Tools for Specific Tasks
Extending Editor Functionality
Built-in Node Types
Nodes
Effects
Decals
Light Sources
Geodetics
World Nodes
Sound Objects
Pathfinding Objects
Players
Programming
Fundamentals
Setting Up Development Environment
Usage Examples
C++
C#
UnigineScript
UUSL (Unified UNIGINE Shader Language)
Plugins
File Formats
Materials and Shaders
Rebuilding the Engine Tools
GUI
Double Precision Coordinates
API
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 Creation
Content Optimization
Materials
Material Nodes Library
Miscellaneous
Input
Math
Matrix
Textures
Art Samples
Tutorials
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 Mesh

A GUI Mesh is a non-flat GUI object based on an arbitrary mesh. If the mesh contains several surfaces, the same GUI will be rendered on each of them.

Notice
The GUI will be rendered according to the UV mapping of surfaces.

Basically, the GUI Mesh is a non-flat display, on which GUI is rendered. You can interact with such GUI the same way as with GUI created via the Gui class.

See also#

  • The ObjectGuiMesh class to edit GUI meshes via API
  • A set of samples located in the data/samples/objects/ directory:

Creating GUI Mesh#

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

To add the GUI Mesh:

  1. Run the project with UnigineEditor.
  2. On the Menu bar, click Create -> GUI -> GUI Mesh.

  3. Specify a mesh on which the GUI will be rendered.
  4. Place the GUI Mesh in the world and specify the required parameters for it.
  5. In the script, get the GUI object via the World.getNodeByName() (or World.getNodeByID() if you have the node index) and assign a widget to it by using functions of the ObjectGuiMesh class.

Editing GUI Mesh#

In the Gui Mesh section of the Node tab, you can adjust the following parameters of the GUI Mesh:

Node tab, Gui Mesh section
Show Mouse Indicates if the mouse cursor should be rendered in the GUI Mesh.
Control Distance Distance at which the GUI Mesh becomes controllable.
Screen Width Width of the GUI object in pixels.
Screen Height Height of the GUI object in pixels.
Last update: 2022-10-10
Build: ()