This page has been translated automatically.
Видеоуроки
Интерфейс
Основы
Продвинутый уровень
Подсказки и советы
Основы
Программирование на C#
Рендеринг
Профессиональный уровень (SIM)
Принципы работы
Свойства (properties)
Компонентная Система
Рендер
Физика
Редактор UnigineEditor
Обзор интерфейса
Работа с ассетами
Контроль версий
Настройки и предпочтения
Работа с проектами
Настройка параметров ноды
Setting Up Materials
Настройка свойств
Освещение
Sandworm
Использование инструментов редактора для конкретных задач
Расширение функционала редактора
Встроенные объекты
Ноды (Nodes)
Объекты (Objects)
Эффекты
Декали
Источники света
Geodetics
World-ноды
Звуковые объекты
Объекты поиска пути
Player-ноды
Программирование
Основы
Настройка среды разработки
Примеры использования
C++
C#
UnigineScript
UUSL (Unified UNIGINE Shader Language)
Плагины
Форматы файлов
Материалы и шейдеры
Rebuilding the Engine Tools
Интерфейс пользователя (GUI)
Двойная точность координат
API
Animations-Related Classes
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
VR-Related Classes
Работа с контентом
Оптимизация контента
Материалы
Визуальный редактор материалов
Material Nodes Library
Miscellaneous
Input
Math
Matrix
Textures
Art Samples
Учебные материалы

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/Unigine/IG/UnigineIG.h>

SymbolText Class

Перечисления (Enums)

Orientation#

ИмяОписание
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#

ИмяОписание
LEFT = 0Align text to the left.
CENTER = 1Align text to the center.
RIGHT = 2Align text to the right.

AlignVertical#

ИмяОписание
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 ( const String & path ) #

Sets the font stored in the specified file.

Arguments

  • const String & path - Path to a font file.

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: 28.04.2023
Build: ()