This page has been translated automatically.
Видеоуроки
Interface
Essentials
Advanced
Подсказки и советы
Основы
Программирование на C#
Рендеринг
Professional (SIM)
Принципы работы
Свойства (properties)
Компонентная Система
Рендер
Физика
Редактор UnigineEditor
Обзор интерфейса
Работа с ассетами
Настройки и предпочтения
Работа с проектами
Настройка параметров ноды
Setting Up Materials
Настройка свойств
Освещение
Sandworm
Использование инструментов редактора для конкретных задач
Расширение функционала редактора
Встроенные объекты
Ноды (Nodes)
Объекты (Objects)
Эффекты
Декали
Источники света
Geodetics
World-ноды
Звуковые объекты
Объекты поиска пути
Players
Программирование
Основы
Настройка среды разработки
Примеры использования
C++
C#
UnigineScript
UUSL (Unified UNIGINE Shader Language)
Плагины
Форматы файлов
Materials and Shaders
Rebuilding the Engine Tools
Интерфейс пользователя (GUI)
Двойная точность координат
API
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::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: 10.10.2022
Build: ()