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.Exporter Class

Warning
The functionality described in this article is not available in the Community SDK edition.
You should upgrade to Engineering / Sim SDK edition to use it.

This class is used to manage a node exporter. Node exporters are used by the Engine's export system to export UNIGINE’s nodes to files of different formats. A single exporter can be used to export multiple nodes, but there shouldn't be two or more exporters registered for a single node type.

Each exporter has a set of parameters that control the whole export process (e.g., whether to export lights, cameras, and material normal maps, reset root node transformation, etc.). The exporter should be initialized before the use.

Notice
This is a base class for all exporters. Your custom exporter class must be inherited from it.

Exporter Class

Members


Exporter ( ) #

Constructor. Creates an exporter with default settings.

bool ContainsParameter ( string name ) #

Returns a value indicating whether the list of export parameters includes a parameter with a given name.

Arguments

  • string name - Parameter name.

Return value

true if the list of export parameters includes a parameter with a given name; otherwise, false.

void SetParameterInt ( string name, int v ) #

Sets a new value for the specified integer parameter.

Arguments

  • string name - Name of the integer parameter.
  • int v - New value to be set.

int GetParameterInt ( string name ) #

Returns the current value of the specified integer parameter.

Arguments

  • string name - Name of the integer parameter.

Return value

Value of the integer parameter.

void SetParameterFloat ( string name, float v ) #

Sets a new value for the specified float parameter.

Arguments

  • string name - Name of the float parameter.
  • float v - New value to be set.

float GetParameterFloat ( string name ) #

Returns the current value of the specified float parameter.

Arguments

  • string name - Name of the float parameter.

Return value

Value of the float parameter.

void SetParameterDouble ( string name, double v ) #

Sets a new value for the specified double parameter.

Arguments

  • string name - Name of the double parameter.
  • double v - New value to be set.

double GetParameterDouble ( string name ) #

Returns the current value of the specified double parameter.

Arguments

  • string name - Name of the double parameter.

Return value

Value of the double parameter.

void SetParameterString ( string name, string v ) #

Sets a new value for the specified string parameter.

Arguments

  • string name - Name of the string parameter.
  • string v - New value to be set.

string GetParameterString ( string name ) #

Returns the current value of the specified string parameter.

Arguments

  • string name - Name of the string parameter.

Return value

Value of the string parameter.

bool Init ( ) #

Initializes the exporter.

bool Export ( Node root_node, string output_filepath ) #

Exports the node to the specified output file.

Arguments

  • Node root_node - Root node of the hierarchy to be exported.
  • string output_filepath - Output path to be used to store generated file(s) with exported data.
Last update: 19.04.2024
Build: ()