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
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::ArrayVector Class

Header: #include <UnigineInterpreter.h>

Allows using UnigineScript vectors.

ArrayVector Class

Members


ArrayVector ( const ArrayVector & vector ) #

Copy constructor.

Arguments

  • const ArrayVector & vector - Vector.

void set ( int index, const Variable & v ) const#

Sets an item by index.

Arguments

  • int index - Item index.
  • const Variable & v - Item to set.

static ArrayVector get ( void * interpreter, const Variable & id ) #

Returns a vector from UnigineScript.

Arguments

  • void * interpreter - Interpreter pointer.
  • const Variable & id - Vector ID.

Return value

The vector.

const Variable & get ( int index ) const#

Returns an item by index.

Arguments

  • int index - Item index.

Return value

The item.

void append ( const Variable & v ) const#

Appends an item to the vector.

Arguments

void append ( int pos, const Variable & v ) const#

Appends an item to the vector at a given position.

Arguments

  • int pos - Position index.
  • const Variable & v - Item.

void clear ( ) const#

Clears all items of the vector.

int find ( const Variable & v ) const#

Returns an index of a given item.

Arguments

Return value

Index, if found; otherwise, -1.

ArrayVector & operator= ( const ArrayVector & vector ) #

Assignment operator for the vector.

Arguments

  • const ArrayVector & vector - Vector to be assigned.

const Variable & operator[] ( int index ) const#

Vector access.

Arguments

  • int index - Item index.

Return value

The item.

void remove ( int pos ) const#

Removes an item from a given position of the vector.

Arguments

  • int pos - Position index.

void resize ( int size ) const#

Resizes a vector.

Arguments

  • int size - New vector capacity.

int size ( ) const#

Returns vector length.

Return value

Vector length.
Last update: 19.04.2024
Build: ()