Interface Overview
Assets Workflow
Settings and Preferences
Working With Projects
Adjusting Node Parameters
Setting Up Materials
Setting Up Properties
Landscape Tool
Using Editor Tools for Specific Tasks
Extending Editor Functionality
Setting Up Development Environment
Usage Examples
UUSL (Unified UNIGINE Shader Language)
File Formats
Rebuilding the Engine Tools
Double Precision Coordinates
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


UnigineScript is deprecated and will be removed in future releases. Please consider using C#/C++ instead, as these APIs are the preferred ones. Availability of new Engine features in UnigineScipt is not guaranteed, as the current level of support assumes only fixing critical issues.

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

The gui_01 sample demonstrates how to play a video on a mesh, namely:

Video on the mesh created with the gui_01.cpp script

In this sample, each of 3 displays is a surface of the GUI mesh. So, the video is rendered on each of them.

Texture coordinates of both the left and right surfaces (displays) are two times larger than the texture coordinates of the central surface (display), so the video is rendered four times on each of them.

See Also#

Last update: 2017-07-03