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
Учебные материалы

ComponentVariable Class

Header: #include <UnigineComponentSystem.h>

A component parameter is created using any of the following macros. Each macro has the format as indicated in the brackets with the mandatory arguments in bold:

  • PROP_PARAM(type, name, default_value (for all parameters except curves and properties), items (for switch parameters only), title, tooltip, group)
  • PROP_STRUCT(type, name, title, tooltip, group)
  • PROP_ARRAY(type, name, title, tooltip, group)
  • PROP_ARRAY_STRUCT(struct_type, name, title, tooltip, group)

Using the methods of this class, you can address each parameter.

ComponentVariable Class

Members


const PropertyParameterPtr & getParameter ( ) const#

Returns the pointer to the corresponding property parameter.

Return value

Pointer to the property parameter.

int size ( ) #

Returns the number of elements in the array.
Notice
This method is for the array and array structure component parameters.

Return value

Number of elements in the array.

C & operator[] ( int index ) #

Returns the reference to the requested element.
Notice
This method is for the array and array structure component parameters.

Arguments

  • int index - Position of the element to return.

Return value

Reference to the requested element.
Last update: 25.10.2021
Build: ()