This page has been translated automatically.
UnigineEditor
Interface Overview
Assets Workflow
Settings and Preferences
Adjusting Node Parameters
Setting Up Materials
Setting Up Properties
Landscape Tool
Using Editor Tools for Specific Tasks
FAQ
Программирование
Fundamentals
Setting Up Development Environment
Usage Examples
C++
C#
UUSL (Unified UNIGINE Shader Language)
File Formats
Rebuilding the Engine and 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
Networking Functionality
Pathfinding-Related Classes
Physics-Related Classes
Plugins-Related Classes
CIGI Client Plugin
Rendering-Related Classes
Внимание! Эта версия документация УСТАРЕЛА, поскольку относится к более ранней версии SDK! Пожалуйста, переключитесь на самую актуальную документацию для последней версии SDK.
Внимание! Эта версия документации описывает устаревшую версию SDK, которая больше не поддерживается! Пожалуйста, обновитесь до последней версии SDK.

gui_06

This article describes the data/samples/objects/gui_06.cpp sample.

The gui_06 sample demonstrates how to attach a GUI object to a static mesh, namely:

  • Create a GUI object without a background and set the value indicating if the GUI object should be a billboard to the 1.
  • Assign an instance of the WidgetLabel class to the created object
  • Add the GUI object with the text label to the static mesh as a child

GUI object attached to the static mesh

If you change the mesh position, the label position is also changed.

Notice
If you want to delete an instance of the ObjectGui class, first you have to delete the label assigned to it in your script.

See Also#

Last update: 30.04.2019
Build: ()