This page has been translated automatically.
Видеоуроки
Interface
Essentials
Advanced
Подсказки и советы
Программирование на C#
Рендеринг
Принципы работы
Свойства (properties)
Компонентная Система
Рендер
Физика
Редактор UnigineEditor
Обзор интерфейса
Работа с ассетами
Настройки и предпочтения
Работа с проектами
Настройка параметров узла
Setting Up Materials
Setting Up Properties
Освещение
Landscape Tool
Sandworm
Использование инструментов редактора для конкретных задач
Extending Editor Functionality
Встроенные объекты
Nodes
Objects
Effects
Decals
Light Sources
Geodetics
World Objects
Sound Objects
Pathfinding Objects
Players
Программирование
Основы
Настройка среды разработки
Примеры использования
UnigineScript
C++
C#
Унифицированный язык шейдеров UUSL
File Formats
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
Работа с контентом
Оптимизация контента
Материалы
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: 09.04.2021
Build: ()