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
Containers
Common Functionality
Controls-Related Classes
Engine-Related Classes
Filesystem Functionality
GUI-Related Classes
Math Functionality
Node-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.TerrainDetail Class

This class is used to manage details of the Landscape Terrain Object. Details, define terrain's appearance, each of them can have an unlimited number of children. Details are attached to detail masks and are rendered in accordance with their rendering order (the one with the highest order shall be rendered above all others).

TerrainDetail Class

Properties

string Name#

The Current name of the detail.

bool Enabled#

The true if the terrain detail is enabled; otherwise, false.

bool IsActive#

The true if the terrain detail is active; otherwise, false.

float MinVisibleHeight#

The Minimum height value for the detail, in units.

float MaxVisibleHeight#

The Maximum height value for the detail, in units.

float MinFadeHeight#

The Fade in height range value for the detail, in units.

float MaxFadeHeight#

The Fade out height range value for the detail, in units.

vec4 MaskByAlbedo#

The Four-component vector (R, G, B, A) representing a color currently used as a mask for the detail.

float MaskThreshold#

The Current mask threshold value in the [0; 1] range.

float MaskContrast#

The Current mask contrast value in the [0; 1] range.

TerrainDetailMask DetailMask#

The Detail mask currently used for the detail.

float MaxFadeTexelSize#

The Fade out texel size range value for the detail, in units.

float MinFadeTexelSize#

The Fade in texel size range value for the detail, in units.

float MaxVisibleTexelSize#

The Maximum texel size value for the detail.

float MinVisibleTexelSize#

The Minimum texel size value for the detail.

Material Material#

The detail material used for the detail.

UGUID MaterialGUID#

The GUID of the material currently used for the detail.

string MaterialPath#

The path of the material currently used for the detail.

Members


TerrainDetail Copy ( TerrainDetail dest_detail ) #

Copies the detail to the specified destination detail (with all its children).

Arguments

  • TerrainDetail dest_detail - Destination detail to which the detail is to be copied.

Return value

Destination detail.

TerrainDetail Clone ( ) #

Clones the terrain detail (with all its children).

Return value

Cloned detail.

void SetMaterialPath ( string path ) #

Sets the detail material by a given path.

Arguments

  • string path - Material path.

string GetMaterialPath ( ) #

Returns the path of the assigned detail material.

Return value

Material path.

void SetMaterialGUID ( UGUID materialguid ) #

Sets the material by a GUID.

Arguments

UGUID GetMaterialGUID ( ) #

Returns the GUID of the assigned detail material.
Last update: 14.12.2022
Build: ()