This page has been translated automatically.
Видеоуроки
Interface
Essentials
Advanced
Подсказки и советы
Основы
Программирование на C#
Рендеринг
Professional (SIM)
Принципы работы
Свойства (properties)
Компонентная Система
Рендер
Физика
Редактор UnigineEditor
Обзор интерфейса
Работа с ассетами
Настройки и предпочтения
Работа с проектами
Настройка параметров ноды
Setting Up Materials
Настройка свойств
Освещение
Landscape Tool
Sandworm
Использование инструментов редактора для конкретных задач
Расширение функционала редактора
Встроенные объекты
Ноды (Nodes)
Объекты (Objects)
Эффекты
Декали
Источники света
Geodetics
World Nodes
Звуковые объекты
Объекты поиска пути
Players
Программирование
Основы
Настройка среды разработки
Примеры использования
C++
C#
UnigineScript
UUSL (Unified UNIGINE Shader Language)
Плагины
Форматы файлов
Materials and Shaders
Rebuilding the Engine Tools
GUI
Двойная точность координат
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
Работа с контентом
Оптимизация контента
Материалы
Визуальный редактор материалов
Сэмплы материалов
Material Nodes Library
Miscellaneous
Input
Math
Matrix
Textures
Art Samples
Tutorials
Внимание! Эта версия документация УСТАРЕЛА, поскольку относится к более ранней версии SDK! Пожалуйста, переключитесь на самую актуальную документацию для последней версии SDK.
Внимание! Эта версия документации описывает устаревшую версию SDK, которая больше не поддерживается! Пожалуйста, обновитесь до последней версии SDK.

Unigine::Plugins::IG::SymbolText Class

Warning
The functionality described in this article is not available in the Community SDK edition.
You should upgrade to Sim SDK edition to use it.
Header: #include <plugins/UnigineIG.h>

SymbolText Class

Enums

Orientation#

NameDescription
LEFT_TO_RIGHT = 0Horizontal text orientation from left to right.
RIGHT_TO_LEFT = 2Horizontal text orientation from right to left.
TOP_TO_BOTTOM = 1Vertical text orientation from top to bottom.
BOTTOM_TO_TOP = 3Vertical text orientation from bottom to top.

AlignHorizontal#

NameDescription
LEFT = 0Align text to the left.
CENTER = 1Align text to the center.
RIGHT = 2Align text to the right.

AlignVertical#

NameDescription
TOP = 0Align text to the top.
CENTER = 1Align text to the center.
BOTTOM = 2Align text to bottom.

Members


void setText ( const char * text ) #

Sets the text to be displayed.

Arguments

  • const char * text - Text to be displayed.

void setFont ( int font_id ) #

Sets the font using its identifier stored in the IG configuration file (ig_config.xml).

Arguments

  • int font_id - Font identifier.

void setFontSize ( float font_size ) #

Sets the font size.

Arguments

  • float font_size - Font size.

void setAlign ( SymbolText.AlignHorizontal align_horizontal, SymbolText.AlignVertical align_vertical ) #

Sets horizontal and vertical alignment for the text to be displayed.

Arguments

void setOrientation ( SymbolText.Orientation orientation ) #

Sets orientation for the text to be displayed (horizontal: left-to-right / right-to-left or vertical: bottom-to-top / top-to-bottom).

Arguments

Last update: 10.03.2022
Build: ()