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
Работа с контентом
Оптимизация контента
Материалы
Визуальный редактор материалов
Material Nodes Library
Miscellaneous
Input
Math
Matrix
Textures
Art Samples
Учебные материалы

Unigine.VRMixedReality Class

The class is used for mixed reality management in Varjo devices.Класс используется для управления смешанной реальностью в устройствах Varjo.

VRMixedReality Class

Перечисления (Enums)

BLEND_MASKING_MODE#

ИмяОписание
BEGIN = 0The first element to be used for iteration.Первый элемент, который будет использоваться для итерации.
DISABLED = 0Masking mode is disabled.Режим маскировки отключен.
RESTRICT_VIDEO_TO_MASK = 1Show the video pass-through image (VST) in the mask. Can be used with chroma key.Отобразите сквозное изображение видео (VST) в маске. Может использоваться с цветовой клавишей.
RESTRICT_VR_TO_MASK = 2Show VR in the mask. Can be used with chroma key.Показывать виртуальную реальность в маске. Можно использовать с цветовой клавишей.
RESTRICT_VR_TO_CHROMAKEY_REDUCED_BY_MASK = 3Show VR in the mask and chroma elsewhere. Requires chroma key.Отобразите VR в маске и цветность в другом месте. Требуется цветовой ключ.
END = 3The last element to be used for iteration.Последний элемент, который будет использоваться для итерации.

CAMERA_PROPERTY_MODE#

ИмяОписание
DISABLED = 0The camera property adjustment is disabled.Настройка свойств камеры отключена.
AUTO = 1Automatic property adjustment for the camera.Автоматическая настройка свойств камеры.
MANUAL = 2Manual property adjustment for the camera. In this mode you can set the desired property value (exposure time correction, white balance correction, ISO) manually via the corresponding methods.Ручная настройка свойств камеры. В этом режиме вы можете установить желаемое значение свойств (коррекция времени экспозиции, коррекция баланса белого, ISO) вручную с помощью соответствующих методов.

CAMERA_EXPOSURE_TIME#

ИмяОписание
UNKNWON = 0The camera exposure time is not specified.Время экспозиции камеры не указано.
BEGIN = 1The first element to be used for iteration.Первый элемент, который будет использоваться для итерации.
VALUE_91_MS = 1The camera exposure time value equal to 91 K.Значение времени экспозиции камеры равно 91 К.
VALUE_125_MS = 2The camera exposure time value equal to 125 K.Значение времени экспозиции камеры равно 125 К.
VALUE_250_MS = 3The camera exposure time value equal to 250 K.Значение времени экспозиции камеры равно 250 К.
VALUE_500_MS = 4The camera exposure time value equal to 500 K.Значение времени экспозиции камеры, равное 500 К.
VALUE_1000_MS = 5The camera exposure time value equal to 1000 K.Значение времени экспозиции камеры, равное 1000 К.
VALUE_2000_MS = 6The camera exposure time value equal to 2000 K.Значение времени экспозиции камеры, равное 2000 К.
VALUE_4000_MS = 7The camera exposure time value equal to 4000 K.Значение времени экспозиции камеры равно 4000 К.
VALUE_8000_MS = 8The camera exposure time value equal to 8000 K.Значение времени экспозиции камеры равно 8000 К.
END = 8The last element to be used for iteration.Последний элемент, который будет использоваться для итерации.

CAMERA_WHITE_BALANCE#

ИмяОписание
UNKNWON = 0The camera white balance value is not specified.Значение баланса белого камеры не указано.
BEGIN = 1The first element to be used for iteration.Первый элемент, который будет использоваться для итерации.
VALUE_2000_K = 1The camera white balance value equal to 2000 K.Значение баланса белого камеры равно 2000 К.
VALUE_3000_K = 2The camera white balance value equal to 3000 K.Значение баланса белого камеры равно 3000 К.
VALUE_3500_K = 3The camera white balance value equal to 3500 K.Значение баланса белого камеры равно 3500 К.
VALUE_4200_K = 4The camera white balance value equal to 4200 K.Значение баланса белого камеры равно 4200 К.
VALUE_5000_K = 5The camera white balance value equal to 5000 K.Значение баланса белого камеры равно 5000 К.
VALUE_5400_K = 6The camera white balance value equal to 5400 K.Значение баланса белого камеры равно 5400 К.
VALUE_6500_K = 7The camera white balance value equal to 6500 K.Значение баланса белого камеры равно 6500 К.
VALUE_8000_K = 8The camera white balance value equal to 8000 K.Значение баланса белого камеры равно 8000 К.
VALUE_12000_K = 9The camera white balance value equal to 12000 K.Значение баланса белого камеры равно 12000 К.
END = 9The last element to be used for iteration.Последний элемент, который будет использоваться для итерации.

CAMERA_ISO#

ИмяОписание
UNKNWON = 0The camera ISO value is not specified.Значение ISO камеры не указано.
BEGIN = 1The first element to be used for iteration.Первый элемент, который будет использоваться для итерации.
GAIN_100 = 1The camera ISO value equal to 100.Значение ISO камеры равно 100.
GAIN_200 = 2The camera ISO value equal to 200.Значение ISO камеры равно 200.
GAIN_400 = 3The camera ISO value equal to 400.Значение ISO камеры равно 400.
GAIN_800 = 4The camera ISO value equal to 800.Значение ISO камеры равно 800.
GAIN_1600 = 5The camera ISO value equal to 1600.Значение ISO камеры равно 1600.
GAIN_3200 = 6The camera ISO value equal to 3200.Значение ISO камеры равно 3200.
GAIN_6400 = 7The camera ISO value equal to 6400.Значение ISO камеры равно 6400.
END = 7The last element to be used for iteration.Последний элемент, который будет использоваться для итерации.

CAMERA_FLICKER_COMPENSATION#

ИмяОписание
UNKNWON = 0The camera flicker compensation value is not specified.Значение компенсации мерцания камеры не указано.
BEGIN = 1The first element to be used for iteration.Первый элемент, который будет использоваться для итерации.
FREQ_50_HZ = 1The camera flicker compensation value equal to 50 Hz.Значение компенсации мерцания камеры равно 50 Гц.
FREQ_60_HZ = 2The camera flicker compensation value equal to 60 Hz.Значение компенсации мерцания камеры равно 60 Гц.
END = 2The last element to be used for iteration.Последний элемент, который будет использоваться для итерации.

CUBEMAP_MODE#

ИмяОписание
BEGIN = 0The first element to be used for iteration.Первый элемент, который будет использоваться для итерации.
DISABLED = 0The cubemap streaming from AR cameras is disabled.Потоковая передача cubemap с камер дополненной реальности отключена.
ENVIRONMENT_OVERLAP = 1The environment texture substitutes the sky.Текстура окружающей среды заменяет небо.
ENVIRONMENT_PRESET_0 = 2The first environment preset defines the way the AR texture is set for the environment.Первая предустановка среды определяет способ настройки текстуры AR для среды.
ENVIRONMENT_PRESET_1 = 3The second environment preset defines the way the AR texture is set for the environment.Вторая предустановка среды определяет способ настройки текстуры AR для среды.
ENVIRONMENT_PRESET_2 = 4The third environment preset defines the way the AR texture is set for the environment.Третья предустановка среды определяет способ настройки текстуры AR для среды.
END = 4The last element to be used for iteration.Последний элемент, который будет использоваться для итерации.

OVERRIDE_COLOR_CORRECTION_MODE#

ИмяОписание
BEGIN = 0The first element to be used for iteration.Первый элемент, который будет использоваться для итерации.
DISABLED = 0The color correction is disabled.Цветокоррекция отключена.
EXPOSURE = 1Exposure correction for the stream from the AR cameras.Коррекция экспозиции для потока с камер дополненной реальности.
EXPOSURE_WHITE_BALANCE = 2Exposure and white balance correction for the stream.Коррекция экспозиции и баланса белого для потока.
END = 2The last element to be used for iteration.Последний элемент, который будет использоваться для итерации.

Свойства

bool ChromaKeyEnabled#

Console: vr_mixed_reality_chroma_key_enabled
value indicating if chroma keying is enabled. VST capturing from HMD cameras must be enabled.значение, указывающее, включена ли цветовая манипуляция. Должна быть включена запись VST с камер HMD.
Значение по умолчанию false.

bool DepthTestEnabled#

Console: vr_mixed_reality_depth_test_enabled
value indicating if depth buffer submission is enabled. VST capturing from HMD cameras must be enabled.значение, указывающее, включена ли отправка буфера глубины. Должна быть включена запись VST с камер HMD.
Значение по умолчанию false.

bool AlphaBlendEnabled#

Console: vr_mixed_reality_alpha_blend_enabled
value indicating if alpha blending is enabled. This option is used for blending VR and AR images using the alpha channel. VST capturing from HMD cameras must be enabled and the screen precision must be 1.значение, указывающее, включено ли альфа-смешивание. Эта опция используется для смешивания изображений виртуальной и дополненной реальности с использованием альфа-канала. Запись VST с камер HMD должна быть включена, а точность отображения должна быть равна 1.
Значение по умолчанию false.

bool VideoEnabled#

Console: vr_mixed_reality_video_enabled
value indicating if the video signal from the real-world view from the front-facing HMD-mounted cameras is enabled. The real-world view is used for combining virtual and real-world elements to create an immersive experience in mixed reality.значение, указывающее, включен ли видеосигнал реального изображения с фронтальных камер, установленных на HMD. Изображение реального мира используется для объединения элементов виртуального и реального мира для создания эффекта погружения в смешанную реальность.
Значение по умолчанию false.

bool DepthTestRangeEnabled#

Console: vr_mixed_reality_depth_test_range_enabled
value indicating if the depth test range usage is enabled. Use the depth test range (Depth Test Near Z, Depth Test Far Z) to control the range for which the depth test is evaluated.значение, указывающее, включено ли использование диапазона проверки глубины. Используйте диапазон проверки глубины (Depth Test Near Z, Depth Test Far Z) для управления диапазоном, для которого оценивается тест глубины.
Значение по умолчанию false.

vec2 DepthTestRange#

Console: vr_mixed_reality_depth_test_range
depth test range as a two-component vector (the near and far planes). The depth test range usage must be enabled.диапазон измерения глубины в виде двухкомпонентного вектора (ближняя и дальняя плоскости). Необходимо включить использование диапазона измерения глубины.

vec2(0.0f, 1.0f) - значение по умолчанию

int ChromaKeyConfigNum#

number of chroma key config indices supported. The maximum index will be count-1.количество поддерживаемых индексов конфигурации цветового ключа. Максимальный индекс будет равен count-1.

VRMixedReality.BLEND_MASKING_MODE BlendMaskingMode#

Console: vr_mixed_reality_blend_masking_mode
mode of the Blend Control Mask that can be used to extend or restrict the chroma key mask or to control the depth testing against the estimated video depth.режим Blend Control Mask, который можно использовать для расширения или ограничения маски цветности или для управления тестированием глубины по сравнению с расчетной глубиной видео.
Одно из следующих значений:
  • 0 - Отключено (режим маскировки отключен). (по умолчанию)
  • 1 - Ограничить видео маской (показывать сквозное изображение видео (VST) в маске; можно использовать с цветовой клавишей)
  • 2 - Ограничить VR маской (показывать VR в маске; можно использовать с цветовой клавишей)
  • 3 - Ограничить VR хромакеем, уменьшенным по маске (показывать VR в маске и цветность в другом месте; требуется цветовой ключ)

bool BlendMaskingDebugEnabled#

Console: vr_mixed_reality_blend_masking_debug_enabled
value indicating if blend masking debug visualization is enabled. The blend masking mode must be enabled.значение, указывающее, включена ли визуализация отладки с маскировкой наложения. Должен быть включен режим маскировки наложением.
Значение по умолчанию false.

bool IsBlendMaskingUsed#

value indicating if the Blend Control Mask is used to extend or restrict the chroma key mask or to control the depth testing against the estimated video depth.значение, указывающее, используется ли Blend Control Mask для расширения или ограничения маски цветности или для управления тестированием глубины по сравнению с расчетной глубиной видео.

Texture CurrentBlendMaskColorBuffer#

image representing the current color buffer of the Blend Control Mask.изображение, представляющее текущий цветовой буфер Blend Control Mask.

double CameraExposureTimeRaw#

exposure time value for the camera.значение времени экспозиции для камеры.

VRMixedReality.CAMERA_EXPOSURE_TIME CameraExposureTime#

Console: vr_mixed_reality_camera_exposure_time
exposure time value that is valid for the connected device.значение времени экспозиции, действительное для подключенного устройства.

VRMixedReality.CAMERA_PROPERTY_MODE CameraExposureTimeMode#

Console: vr_mixed_reality_camera_exposure_time_mode
exposure adjustment mode for the camera.режим настройки экспозиции для фотокамеры.
Одно из следующих значений:
  • 0 - регулировка экспозиции отключена
  • 1 - автоматическая регулировка экспозиции (по умолчанию)
  • 2 - ручная регулировка экспозиции

int CameraWhiteBalanceRaw#

white balance correction value that is valid for the connected device.значение коррекции баланса белого, действительное для подключенного устройства.

VRMixedReality.CAMERA_WHITE_BALANCE CameraWhiteBalance#

Console: vr_mixed_reality_camera_white_balance
white balance correction value that is valid for the connected device.значение коррекции баланса белого, действительное для подключенного устройства.

VRMixedReality.CAMERA_PROPERTY_MODE CameraWhiteBalanceMode#

Console: vr_mixed_reality_camera_white_balance_mode
white balance adjustment mode for the camera.режим настройки баланса белого для фотокамеры.
Одно из следующих значений:
  • 0 - регулировка баланса белого отключена
  • 1 - автоматическая регулировка баланса белого (по умолчанию)
  • 2 - ручная регулировка баланса белого

int CameraISORaw#

ISO value that is valid for the connected device.Значение ISO, действительное для подключенного устройства.

VRMixedReality.CAMERA_ISO CameraISO#

Console: vr_mixed_reality_camera_iso
ISO value for the camera.Значение ISO для камеры.

VRMixedReality.CAMERA_PROPERTY_MODE CameraISOMode#

Console: vr_mixed_reality_camera_iso_mode
ISO adjustment mode for the camera.Режим настройки ISO для камеры.
Одно из следующих значений:
  • 0 - Настройка ISO отключена
  • 1 - автоматическая настройка ISO (по умолчанию)
  • 2 - ручная настройка ISO

int CameraFlickerCompensationRaw#

flicker compensation value for the camera. This is useful when using the HMD indoors with mostly artificial light bulbs, which flicker at the frequency of 50Hz or 60Hz and can cause visual flicker artifacts on the video see through image. The correct setting depends on the underlying power grid's frequency. For example, in most parts of Africa/Asia/Australia/Europe the frequency is 50 Hz and in most parts of North and South America 60 Hz.значение компенсации мерцания для камеры. Это полезно при использовании HMD в помещении, где в основном используются лампы искусственного освещения, которые мерцают с частотой 50 Гц или 60 Гц и могут вызывать визуальные артефакты мерцания на прозрачном изображении видео. Правильная настройка зависит от частоты базовой электросети. Например, в большинстве районов Африки/Азии/Австралии/Европы частота составляет 50 Гц, а в большинстве районов Северной и Южной Америки - 60 Гц.

VRMixedReality.CAMERA_FLICKER_COMPENSATION CameraFlickerCompensation#

Console: vr_mixed_reality_camera_flicker_compensation
flicker compensation value for the camera. This is useful when using the HMD indoors with mostly artificial light bulbs, which flicker at the frequency of 50Hz or 60Hz and can cause visual flicker artifacts on the video see through image. The correct setting depends on the underlying power grid's frequency. For example, in most parts of Africa/Asia/Australia/Europe the frequency is 50 Hz and in most parts of North and South America 60 Hz. значение компенсации мерцания для камеры. Это полезно при использовании HMD в помещении, где в основном используются лампы искусственного освещения, которые мерцают с частотой 50 Гц или 60 Гц и могут вызывать визуальные артефакты мерцания на прозрачном изображении видео. Правильная настройка зависит от частоты базовой электросети. Например, в большинстве районов Африки/Азии/Австралии/Европы частота составляет 50 Гц, а в большинстве районов Северной и Южной Америки - 60 Гц.

int CameraMinSharpness#

minimum possible value for the camera sharpness.минимально возможное значение для резкости камеры.

int CameraMaxSharpness#

maximum possible value for the camera sharpness.максимально возможное значение для резкости камеры.

int CameraSharpness#

Console: vr_mixed_reality_camera_sharpness
sharpness filter power value for the camera.значение мощности фильтра резкости для камеры.

Диапазон значений: [0, 10]. Значение по умолчанию : 0.

float ViewOffset#

Console: vr_mixed_reality_view_offset
eyes view offset (where eye camera should be positioned when using Mixed Reality):
  • 0 for physical eye position0 for physical eye position
  • 1 for VST camera position1 for VST camera position
0 for physical eye position1 for VST camera position
глаза смещение обзора (где должна располагаться камера eye при использовании смешанной реальности):
  • 0 for physical eye position 0 для физического положения глаз
  • 1 for VST camera position 1 для положения камеры VST

Диапазон значений: [0.0, 1.0]. Значение по умолчанию : 0.0.

bool MarkerTrackingEnabled#

Console: vr_mixed_reality_marker_tracking_enabled
value indicating if marker tracking is enabled.значение, указывающее, включено ли отслеживание маркера.
Значение по умолчанию false.

short NumMarkerObjectVisible#

number of visible marker objects.количество видимых объектов-маркеров.

VRMixedReality.CUBEMAP_MODE CubemapMode#

Console: vr_mixed_reality_cubemap_mode
mode defining the way the AR texture is set for the environment.режим, определяющий способ настройки текстуры AR для окружающей среды.
Одно из следующих значений:
  • 0 - потоковая передача cubemap с камер дополненной реальности отключена.
  • 1 - текстура окружающей среды заменяет небо.
  • 2 - первая предустановка среды определяет способ настройки текстуры AR для среды. (по умолчанию)
  • 3 - вторая предустановка окружения определяет способ настройки текстуры AR для окружения.
  • 4 - третья предустановка среды определяет способ настройки текстуры AR для среды.

Render.GGX_MIPMAPS_QUALITY CubemapGGXQuality#

Console: vr_mixed_reality_cubemap_ggx_quality
quality of the generated GGX mips for the AR cubemap.качество сгенерированных GGX mips для AR cubemap.
Одно из следующих значений:
  • 0 - низкий
  • 1 - средний (по умолчанию)
  • 2 - высокий
  • 3 - крайне

VRMixedReality.OVERRIDE_COLOR_CORRECTION_MODE OverrideColorCorrectionMode#

Console: vr_mixed_reality_override_color_correction_mode
color correction mode for the stream from the AR cameras.режим цветокоррекции для потока с камер дополненной реальности.
Одно из следующих значений:
  • 0 - коррекция отключена. (по умолчанию)
  • 1 - коррекция экспозиции для потока с камер дополненной реальности.
  • 2 - коррекция экспозиции и баланса белого для потока.

Event EventCameraPropertyUpdateSharpness#

Event triggered when the sharpness value is changed in Varjo Base. You can subscribe to events via Connect()  and unsubscribe via Disconnect(). You can also use EventConnection  and EventConnections  classes for convenience (see examples below).
Примечание
For more details see the Event Handling article.For more details see the Event Handling article.
For more details see the Event Handling article.
Событие запускается при изменении резкости камеры в Varjo Base. Вы можете подписаться на события через Connect()   и отказаться от подписки через Disconnect(). Вы также можете использовать EventConnection   и EventConnections  классы для удобства (см. примеры ниже).
Примечание
For more details see the Event Handling article.Для получения более подробной информации смотрите статью Обработка событий.
The event handler signature is as follows: myhandler()

Usage Example

Исходный код (C#)
// implement the CameraPropertyUpdateSharpness event handler
void camerapropertyupdatesharpness_event_handler()
{
	Log.Message("\Handling CameraPropertyUpdateSharpness event\n");
}

//////////////////////////////////////////////////////////////////////////////
//  1. Multiple subscriptions can be linked to an EventConnections instance
//  class that you can use later to remove all these subscriptions at once
//////////////////////////////////////////////////////////////////////////////

// create an instance of the EventConnections class
EventConnections camerapropertyupdatesharpness_event_connections = new EventConnections();


// link to this instance when subscribing to an event (subscription to various events can be linked)
VRMixedReality.EventCameraPropertyUpdateSharpness.Connect(camerapropertyupdatesharpness_event_connections, camerapropertyupdatesharpness_event_handler);

// other subscriptions are also linked to this EventConnections instance 
// (e.g. you can subscribe using lambdas)
VRMixedReality.EventCameraPropertyUpdateSharpness.Connect(camerapropertyupdatesharpness_event_connections, () => { 
		Log.Message("Handling CameraPropertyUpdateSharpness event lambda\n");
		}
	);

// later all of these linked subscriptions can be removed with a single line
camerapropertyupdatesharpness_event_connections.DisconnectAll();

//////////////////////////////////////////////////////////////////////////////
//  2. You can subscribe and unsubscribe via the handler function directly
//////////////////////////////////////////////////////////////////////////////

// subscribe to the CameraPropertyUpdateSharpness event with a handler function
VRMixedReality.EventCameraPropertyUpdateSharpness.Connect(camerapropertyupdatesharpness_event_handler);


// remove subscription to the CameraPropertyUpdateSharpness event later by the handler function
VRMixedReality.EventCameraPropertyUpdateSharpness.Disconnect(camerapropertyupdatesharpness_event_handler);


//////////////////////////////////////////////////////////////////////////////
//   3. Subscribe to an event and unsubscribe later via an EventConnection instance
//////////////////////////////////////////////////////////////////////////////

// define a connection to be used to unsubscribe later
EventConnection camerapropertyupdatesharpness_event_connection;

// subscribe to the CameraPropertyUpdateSharpness event with a lambda handler function and keeping the connection
camerapropertyupdatesharpness_event_connection = VRMixedReality.EventCameraPropertyUpdateSharpness.Connect(() => { 
		Log.Message("Handling CameraPropertyUpdateSharpness event lambda\n");
	}
);

// ...

// you can temporarily disable a particular event connection 
camerapropertyupdatesharpness_event_connection.Enabled = false;

// ... perform certain actions

// and enable it back when necessary
camerapropertyupdatesharpness_event_connection.Enabled = true;

// ...

// remove the subscription later using the saved connection
camerapropertyupdatesharpness_event_connection.Disconnect();

//////////////////////////////////////////////////////////////////////////////
//   4. Ignoring CameraPropertyUpdateSharpness events when necessary
//////////////////////////////////////////////////////////////////////////////

// you can temporarily disable the event to perform certain actions without triggering it
VRMixedReality.EventCameraPropertyUpdateSharpness.Enabled = false;

// ... actions to be performed

// and enable it back when necessary
VRMixedReality.EventCameraPropertyUpdateSharpness.Enabled = true;

Event EventCameraPropertyUpdateFlickerCompensation#

Event triggered when the flicker compensation value of the camera is changed in Varjo Base. You can subscribe to events via Connect()  and unsubscribe via Disconnect(). You can also use EventConnection  and EventConnections  classes for convenience (see examples below).
Примечание
For more details see the Event Handling article.For more details see the Event Handling article.
For more details see the Event Handling article.
Событие запускается при изменении значения компенсации мерцания камеры в Varjo Base. Вы можете подписаться на события через Connect()   и отказаться от подписки через Disconnect(). Вы также можете использовать EventConnection   и EventConnections  классы для удобства (см. примеры ниже).
Примечание
For more details see the Event Handling article.Для получения более подробной информации смотрите статью Обработка событий.
The event handler signature is as follows: myhandler()

Usage Example

Исходный код (C#)
// implement the CameraPropertyUpdateFlickerCompensation event handler
void camerapropertyupdateflickercompensation_event_handler()
{
	Log.Message("\Handling CameraPropertyUpdateFlickerCompensation event\n");
}

//////////////////////////////////////////////////////////////////////////////
//  1. Multiple subscriptions can be linked to an EventConnections instance
//  class that you can use later to remove all these subscriptions at once
//////////////////////////////////////////////////////////////////////////////

// create an instance of the EventConnections class
EventConnections camerapropertyupdateflickercompensation_event_connections = new EventConnections();


// link to this instance when subscribing to an event (subscription to various events can be linked)
VRMixedReality.EventCameraPropertyUpdateFlickerCompensation.Connect(camerapropertyupdateflickercompensation_event_connections, camerapropertyupdateflickercompensation_event_handler);

// other subscriptions are also linked to this EventConnections instance 
// (e.g. you can subscribe using lambdas)
VRMixedReality.EventCameraPropertyUpdateFlickerCompensation.Connect(camerapropertyupdateflickercompensation_event_connections, () => { 
		Log.Message("Handling CameraPropertyUpdateFlickerCompensation event lambda\n");
		}
	);

// later all of these linked subscriptions can be removed with a single line
camerapropertyupdateflickercompensation_event_connections.DisconnectAll();

//////////////////////////////////////////////////////////////////////////////
//  2. You can subscribe and unsubscribe via the handler function directly
//////////////////////////////////////////////////////////////////////////////

// subscribe to the CameraPropertyUpdateFlickerCompensation event with a handler function
VRMixedReality.EventCameraPropertyUpdateFlickerCompensation.Connect(camerapropertyupdateflickercompensation_event_handler);


// remove subscription to the CameraPropertyUpdateFlickerCompensation event later by the handler function
VRMixedReality.EventCameraPropertyUpdateFlickerCompensation.Disconnect(camerapropertyupdateflickercompensation_event_handler);


//////////////////////////////////////////////////////////////////////////////
//   3. Subscribe to an event and unsubscribe later via an EventConnection instance
//////////////////////////////////////////////////////////////////////////////

// define a connection to be used to unsubscribe later
EventConnection camerapropertyupdateflickercompensation_event_connection;

// subscribe to the CameraPropertyUpdateFlickerCompensation event with a lambda handler function and keeping the connection
camerapropertyupdateflickercompensation_event_connection = VRMixedReality.EventCameraPropertyUpdateFlickerCompensation.Connect(() => { 
		Log.Message("Handling CameraPropertyUpdateFlickerCompensation event lambda\n");
	}
);

// ...

// you can temporarily disable a particular event connection 
camerapropertyupdateflickercompensation_event_connection.Enabled = false;

// ... perform certain actions

// and enable it back when necessary
camerapropertyupdateflickercompensation_event_connection.Enabled = true;

// ...

// remove the subscription later using the saved connection
camerapropertyupdateflickercompensation_event_connection.Disconnect();

//////////////////////////////////////////////////////////////////////////////
//   4. Ignoring CameraPropertyUpdateFlickerCompensation events when necessary
//////////////////////////////////////////////////////////////////////////////

// you can temporarily disable the event to perform certain actions without triggering it
VRMixedReality.EventCameraPropertyUpdateFlickerCompensation.Enabled = false;

// ... actions to be performed

// and enable it back when necessary
VRMixedReality.EventCameraPropertyUpdateFlickerCompensation.Enabled = true;

Event EventCameraPropertyUpdateISO#

Event triggered when the camera ISO value and/or the ISO adjustment mode are changed in Varjo Base. You can subscribe to events via Connect()  and unsubscribe via Disconnect(). You can also use EventConnection  and EventConnections  classes for convenience (see examples below).
Примечание
For more details see the Event Handling article.For more details see the Event Handling article.
For more details see the Event Handling article.
Событие запускается при изменении значения и/или режима настройки ISO камеры в Varjo Base. Вы можете подписаться на события через Connect()   и отказаться от подписки через Disconnect(). Вы также можете использовать EventConnection   и EventConnections  классы для удобства (см. примеры ниже).
Примечание
For more details see the Event Handling article.Для получения более подробной информации смотрите статью Обработка событий.
The event handler signature is as follows: myhandler()

Usage Example

Исходный код (C#)
// implement the CameraPropertyUpdateISO event handler
void camerapropertyupdateiso_event_handler()
{
	Log.Message("\Handling CameraPropertyUpdateISO event\n");
}

//////////////////////////////////////////////////////////////////////////////
//  1. Multiple subscriptions can be linked to an EventConnections instance
//  class that you can use later to remove all these subscriptions at once
//////////////////////////////////////////////////////////////////////////////

// create an instance of the EventConnections class
EventConnections camerapropertyupdateiso_event_connections = new EventConnections();


// link to this instance when subscribing to an event (subscription to various events can be linked)
VRMixedReality.EventCameraPropertyUpdateISO.Connect(camerapropertyupdateiso_event_connections, camerapropertyupdateiso_event_handler);

// other subscriptions are also linked to this EventConnections instance 
// (e.g. you can subscribe using lambdas)
VRMixedReality.EventCameraPropertyUpdateISO.Connect(camerapropertyupdateiso_event_connections, () => { 
		Log.Message("Handling CameraPropertyUpdateISO event lambda\n");
		}
	);

// later all of these linked subscriptions can be removed with a single line
camerapropertyupdateiso_event_connections.DisconnectAll();

//////////////////////////////////////////////////////////////////////////////
//  2. You can subscribe and unsubscribe via the handler function directly
//////////////////////////////////////////////////////////////////////////////

// subscribe to the CameraPropertyUpdateISO event with a handler function
VRMixedReality.EventCameraPropertyUpdateISO.Connect(camerapropertyupdateiso_event_handler);


// remove subscription to the CameraPropertyUpdateISO event later by the handler function
VRMixedReality.EventCameraPropertyUpdateISO.Disconnect(camerapropertyupdateiso_event_handler);


//////////////////////////////////////////////////////////////////////////////
//   3. Subscribe to an event and unsubscribe later via an EventConnection instance
//////////////////////////////////////////////////////////////////////////////

// define a connection to be used to unsubscribe later
EventConnection camerapropertyupdateiso_event_connection;

// subscribe to the CameraPropertyUpdateISO event with a lambda handler function and keeping the connection
camerapropertyupdateiso_event_connection = VRMixedReality.EventCameraPropertyUpdateISO.Connect(() => { 
		Log.Message("Handling CameraPropertyUpdateISO event lambda\n");
	}
);

// ...

// you can temporarily disable a particular event connection 
camerapropertyupdateiso_event_connection.Enabled = false;

// ... perform certain actions

// and enable it back when necessary
camerapropertyupdateiso_event_connection.Enabled = true;

// ...

// remove the subscription later using the saved connection
camerapropertyupdateiso_event_connection.Disconnect();

//////////////////////////////////////////////////////////////////////////////
//   4. Ignoring CameraPropertyUpdateISO events when necessary
//////////////////////////////////////////////////////////////////////////////

// you can temporarily disable the event to perform certain actions without triggering it
VRMixedReality.EventCameraPropertyUpdateISO.Enabled = false;

// ... actions to be performed

// and enable it back when necessary
VRMixedReality.EventCameraPropertyUpdateISO.Enabled = true;

Event EventCameraPropertyUpdateWhiteBalance#

Event triggered when the white balance correction value of the camera and/or the white balance adjustment mode are changed in Varjo Base. You can subscribe to events via Connect()  and unsubscribe via Disconnect(). You can also use EventConnection  and EventConnections  classes for convenience (see examples below).
Примечание
For more details see the Event Handling article.For more details see the Event Handling article.
For more details see the Event Handling article.
Событие запускается при изменении значения и/или режима настройки баланса белого для камеры в Varjo Base. Вы можете подписаться на события через Connect()   и отказаться от подписки через Disconnect(). Вы также можете использовать EventConnection   и EventConnections  классы для удобства (см. примеры ниже).
Примечание
For more details see the Event Handling article.Для получения более подробной информации смотрите статью Обработка событий.
The event handler signature is as follows: myhandler()

Usage Example

Исходный код (C#)
// implement the CameraPropertyUpdateWhiteBalance event handler
void camerapropertyupdatewhitebalance_event_handler()
{
	Log.Message("\Handling CameraPropertyUpdateWhiteBalance event\n");
}

//////////////////////////////////////////////////////////////////////////////
//  1. Multiple subscriptions can be linked to an EventConnections instance
//  class that you can use later to remove all these subscriptions at once
//////////////////////////////////////////////////////////////////////////////

// create an instance of the EventConnections class
EventConnections camerapropertyupdatewhitebalance_event_connections = new EventConnections();


// link to this instance when subscribing to an event (subscription to various events can be linked)
VRMixedReality.EventCameraPropertyUpdateWhiteBalance.Connect(camerapropertyupdatewhitebalance_event_connections, camerapropertyupdatewhitebalance_event_handler);

// other subscriptions are also linked to this EventConnections instance 
// (e.g. you can subscribe using lambdas)
VRMixedReality.EventCameraPropertyUpdateWhiteBalance.Connect(camerapropertyupdatewhitebalance_event_connections, () => { 
		Log.Message("Handling CameraPropertyUpdateWhiteBalance event lambda\n");
		}
	);

// later all of these linked subscriptions can be removed with a single line
camerapropertyupdatewhitebalance_event_connections.DisconnectAll();

//////////////////////////////////////////////////////////////////////////////
//  2. You can subscribe and unsubscribe via the handler function directly
//////////////////////////////////////////////////////////////////////////////

// subscribe to the CameraPropertyUpdateWhiteBalance event with a handler function
VRMixedReality.EventCameraPropertyUpdateWhiteBalance.Connect(camerapropertyupdatewhitebalance_event_handler);


// remove subscription to the CameraPropertyUpdateWhiteBalance event later by the handler function
VRMixedReality.EventCameraPropertyUpdateWhiteBalance.Disconnect(camerapropertyupdatewhitebalance_event_handler);


//////////////////////////////////////////////////////////////////////////////
//   3. Subscribe to an event and unsubscribe later via an EventConnection instance
//////////////////////////////////////////////////////////////////////////////

// define a connection to be used to unsubscribe later
EventConnection camerapropertyupdatewhitebalance_event_connection;

// subscribe to the CameraPropertyUpdateWhiteBalance event with a lambda handler function and keeping the connection
camerapropertyupdatewhitebalance_event_connection = VRMixedReality.EventCameraPropertyUpdateWhiteBalance.Connect(() => { 
		Log.Message("Handling CameraPropertyUpdateWhiteBalance event lambda\n");
	}
);

// ...

// you can temporarily disable a particular event connection 
camerapropertyupdatewhitebalance_event_connection.Enabled = false;

// ... perform certain actions

// and enable it back when necessary
camerapropertyupdatewhitebalance_event_connection.Enabled = true;

// ...

// remove the subscription later using the saved connection
camerapropertyupdatewhitebalance_event_connection.Disconnect();

//////////////////////////////////////////////////////////////////////////////
//   4. Ignoring CameraPropertyUpdateWhiteBalance events when necessary
//////////////////////////////////////////////////////////////////////////////

// you can temporarily disable the event to perform certain actions without triggering it
VRMixedReality.EventCameraPropertyUpdateWhiteBalance.Enabled = false;

// ... actions to be performed

// and enable it back when necessary
VRMixedReality.EventCameraPropertyUpdateWhiteBalance.Enabled = true;

Event EventCameraPropertyUpdateExposureTime#

Event triggered when the exposure time value of the camera and/or the exposure adjustment mode are changed in Varjo Base. You can subscribe to events via Connect()  and unsubscribe via Disconnect(). You can also use EventConnection  and EventConnections  classes for convenience (see examples below).
Примечание
For more details see the Event Handling article.For more details see the Event Handling article.
For more details see the Event Handling article.
Событие запускается при изменении значения и/или режима настройки времени экспозиции для камеры в Varjo Base. Вы можете подписаться на события через Connect()   и отказаться от подписки через Disconnect(). Вы также можете использовать EventConnection   и EventConnections  классы для удобства (см. примеры ниже).
Примечание
For more details see the Event Handling article.Для получения более подробной информации смотрите статью Обработка событий.
The event handler signature is as follows: myhandler()

Usage Example

Исходный код (C#)
// implement the CameraPropertyUpdateExposureTime event handler
void camerapropertyupdateexposuretime_event_handler()
{
	Log.Message("\Handling CameraPropertyUpdateExposureTime event\n");
}

//////////////////////////////////////////////////////////////////////////////
//  1. Multiple subscriptions can be linked to an EventConnections instance
//  class that you can use later to remove all these subscriptions at once
//////////////////////////////////////////////////////////////////////////////

// create an instance of the EventConnections class
EventConnections camerapropertyupdateexposuretime_event_connections = new EventConnections();


// link to this instance when subscribing to an event (subscription to various events can be linked)
VRMixedReality.EventCameraPropertyUpdateExposureTime.Connect(camerapropertyupdateexposuretime_event_connections, camerapropertyupdateexposuretime_event_handler);

// other subscriptions are also linked to this EventConnections instance 
// (e.g. you can subscribe using lambdas)
VRMixedReality.EventCameraPropertyUpdateExposureTime.Connect(camerapropertyupdateexposuretime_event_connections, () => { 
		Log.Message("Handling CameraPropertyUpdateExposureTime event lambda\n");
		}
	);

// later all of these linked subscriptions can be removed with a single line
camerapropertyupdateexposuretime_event_connections.DisconnectAll();

//////////////////////////////////////////////////////////////////////////////
//  2. You can subscribe and unsubscribe via the handler function directly
//////////////////////////////////////////////////////////////////////////////

// subscribe to the CameraPropertyUpdateExposureTime event with a handler function
VRMixedReality.EventCameraPropertyUpdateExposureTime.Connect(camerapropertyupdateexposuretime_event_handler);


// remove subscription to the CameraPropertyUpdateExposureTime event later by the handler function
VRMixedReality.EventCameraPropertyUpdateExposureTime.Disconnect(camerapropertyupdateexposuretime_event_handler);


//////////////////////////////////////////////////////////////////////////////
//   3. Subscribe to an event and unsubscribe later via an EventConnection instance
//////////////////////////////////////////////////////////////////////////////

// define a connection to be used to unsubscribe later
EventConnection camerapropertyupdateexposuretime_event_connection;

// subscribe to the CameraPropertyUpdateExposureTime event with a lambda handler function and keeping the connection
camerapropertyupdateexposuretime_event_connection = VRMixedReality.EventCameraPropertyUpdateExposureTime.Connect(() => { 
		Log.Message("Handling CameraPropertyUpdateExposureTime event lambda\n");
	}
);

// ...

// you can temporarily disable a particular event connection 
camerapropertyupdateexposuretime_event_connection.Enabled = false;

// ... perform certain actions

// and enable it back when necessary
camerapropertyupdateexposuretime_event_connection.Enabled = true;

// ...

// remove the subscription later using the saved connection
camerapropertyupdateexposuretime_event_connection.Disconnect();

//////////////////////////////////////////////////////////////////////////////
//   4. Ignoring CameraPropertyUpdateExposureTime events when necessary
//////////////////////////////////////////////////////////////////////////////

// you can temporarily disable the event to perform certain actions without triggering it
VRMixedReality.EventCameraPropertyUpdateExposureTime.Enabled = false;

// ... actions to be performed

// and enable it back when necessary
VRMixedReality.EventCameraPropertyUpdateExposureTime.Enabled = true;

Event EventChromakeyUpdate#

Event triggered when the chroma keying settings are changed in Varjo Base. You can subscribe to events via Connect()  and unsubscribe via Disconnect(). You can also use EventConnection  and EventConnections  classes for convenience (see examples below).
Примечание
For more details see the Event Handling article.For more details see the Event Handling article.
For more details see the Event Handling article.
Событие запускается при изменении настроек хромакея (chroma key) в Varjo Base. Вы можете подписаться на события через Connect()   и отказаться от подписки через Disconnect(). Вы также можете использовать EventConnection   и EventConnections  классы для удобства (см. примеры ниже).
Примечание
For more details see the Event Handling article.Для получения более подробной информации смотрите статью Обработка событий.
The event handler signature is as follows: myhandler()

Usage Example

Исходный код (C#)
// implement the ChromakeyUpdate event handler
void chromakeyupdate_event_handler()
{
	Log.Message("\Handling ChromakeyUpdate event\n");
}

//////////////////////////////////////////////////////////////////////////////
//  1. Multiple subscriptions can be linked to an EventConnections instance
//  class that you can use later to remove all these subscriptions at once
//////////////////////////////////////////////////////////////////////////////

// create an instance of the EventConnections class
EventConnections chromakeyupdate_event_connections = new EventConnections();


// link to this instance when subscribing to an event (subscription to various events can be linked)
VRMixedReality.EventChromakeyUpdate.Connect(chromakeyupdate_event_connections, chromakeyupdate_event_handler);

// other subscriptions are also linked to this EventConnections instance 
// (e.g. you can subscribe using lambdas)
VRMixedReality.EventChromakeyUpdate.Connect(chromakeyupdate_event_connections, () => { 
		Log.Message("Handling ChromakeyUpdate event lambda\n");
		}
	);

// later all of these linked subscriptions can be removed with a single line
chromakeyupdate_event_connections.DisconnectAll();

//////////////////////////////////////////////////////////////////////////////
//  2. You can subscribe and unsubscribe via the handler function directly
//////////////////////////////////////////////////////////////////////////////

// subscribe to the ChromakeyUpdate event with a handler function
VRMixedReality.EventChromakeyUpdate.Connect(chromakeyupdate_event_handler);


// remove subscription to the ChromakeyUpdate event later by the handler function
VRMixedReality.EventChromakeyUpdate.Disconnect(chromakeyupdate_event_handler);


//////////////////////////////////////////////////////////////////////////////
//   3. Subscribe to an event and unsubscribe later via an EventConnection instance
//////////////////////////////////////////////////////////////////////////////

// define a connection to be used to unsubscribe later
EventConnection chromakeyupdate_event_connection;

// subscribe to the ChromakeyUpdate event with a lambda handler function and keeping the connection
chromakeyupdate_event_connection = VRMixedReality.EventChromakeyUpdate.Connect(() => { 
		Log.Message("Handling ChromakeyUpdate event lambda\n");
	}
);

// ...

// you can temporarily disable a particular event connection 
chromakeyupdate_event_connection.Enabled = false;

// ... perform certain actions

// and enable it back when necessary
chromakeyupdate_event_connection.Enabled = true;

// ...

// remove the subscription later using the saved connection
chromakeyupdate_event_connection.Disconnect();

//////////////////////////////////////////////////////////////////////////////
//   4. Ignoring ChromakeyUpdate events when necessary
//////////////////////////////////////////////////////////////////////////////

// you can temporarily disable the event to perform certain actions without triggering it
VRMixedReality.EventChromakeyUpdate.Enabled = false;

// ... actions to be performed

// and enable it back when necessary
VRMixedReality.EventChromakeyUpdate.Enabled = true;

Event EventDeviceDisconnected#

Event triggered when the Varjo device is disconnected. You can subscribe to events via Connect()  and unsubscribe via Disconnect(). You can also use EventConnection  and EventConnections  classes for convenience (see examples below).
Примечание
For more details see the Event Handling article.For more details see the Event Handling article.
For more details see the Event Handling article.
Событие запускается при отключении VR устройства. Вы можете подписаться на события через Connect()   и отказаться от подписки через Disconnect(). Вы также можете использовать EventConnection   и EventConnections  классы для удобства (см. примеры ниже).
Примечание
For more details see the Event Handling article.Для получения более подробной информации смотрите статью Обработка событий.
The event handler signature is as follows: myhandler()

Usage Example

Исходный код (C#)
// implement the DeviceDisconnected event handler
void devicedisconnected_event_handler()
{
	Log.Message("\Handling DeviceDisconnected event\n");
}

//////////////////////////////////////////////////////////////////////////////
//  1. Multiple subscriptions can be linked to an EventConnections instance
//  class that you can use later to remove all these subscriptions at once
//////////////////////////////////////////////////////////////////////////////

// create an instance of the EventConnections class
EventConnections devicedisconnected_event_connections = new EventConnections();


// link to this instance when subscribing to an event (subscription to various events can be linked)
VRMixedReality.EventDeviceDisconnected.Connect(devicedisconnected_event_connections, devicedisconnected_event_handler);

// other subscriptions are also linked to this EventConnections instance 
// (e.g. you can subscribe using lambdas)
VRMixedReality.EventDeviceDisconnected.Connect(devicedisconnected_event_connections, () => { 
		Log.Message("Handling DeviceDisconnected event lambda\n");
		}
	);

// later all of these linked subscriptions can be removed with a single line
devicedisconnected_event_connections.DisconnectAll();

//////////////////////////////////////////////////////////////////////////////
//  2. You can subscribe and unsubscribe via the handler function directly
//////////////////////////////////////////////////////////////////////////////

// subscribe to the DeviceDisconnected event with a handler function
VRMixedReality.EventDeviceDisconnected.Connect(devicedisconnected_event_handler);


// remove subscription to the DeviceDisconnected event later by the handler function
VRMixedReality.EventDeviceDisconnected.Disconnect(devicedisconnected_event_handler);


//////////////////////////////////////////////////////////////////////////////
//   3. Subscribe to an event and unsubscribe later via an EventConnection instance
//////////////////////////////////////////////////////////////////////////////

// define a connection to be used to unsubscribe later
EventConnection devicedisconnected_event_connection;

// subscribe to the DeviceDisconnected event with a lambda handler function and keeping the connection
devicedisconnected_event_connection = VRMixedReality.EventDeviceDisconnected.Connect(() => { 
		Log.Message("Handling DeviceDisconnected event lambda\n");
	}
);

// ...

// you can temporarily disable a particular event connection 
devicedisconnected_event_connection.Enabled = false;

// ... perform certain actions

// and enable it back when necessary
devicedisconnected_event_connection.Enabled = true;

// ...

// remove the subscription later using the saved connection
devicedisconnected_event_connection.Disconnect();

//////////////////////////////////////////////////////////////////////////////
//   4. Ignoring DeviceDisconnected events when necessary
//////////////////////////////////////////////////////////////////////////////

// you can temporarily disable the event to perform certain actions without triggering it
VRMixedReality.EventDeviceDisconnected.Enabled = false;

// ... actions to be performed

// and enable it back when necessary
VRMixedReality.EventDeviceDisconnected.Enabled = true;

Event EventDeviceConnected#

Event triggered when the Varjo device is connected. You can subscribe to events via Connect()  and unsubscribe via Disconnect(). You can also use EventConnection  and EventConnections  classes for convenience (see examples below).
Примечание
For more details see the Event Handling article.For more details see the Event Handling article.
For more details see the Event Handling article.
Событие запускается при при подключении VR устройства. Вы можете подписаться на события через Connect()   и отказаться от подписки через Disconnect(). Вы также можете использовать EventConnection   и EventConnections  классы для удобства (см. примеры ниже).
Примечание
For more details see the Event Handling article.Для получения более подробной информации смотрите статью Обработка событий.
The event handler signature is as follows: myhandler()

Usage Example

Исходный код (C#)
// implement the DeviceConnected event handler
void deviceconnected_event_handler()
{
	Log.Message("\Handling DeviceConnected event\n");
}

//////////////////////////////////////////////////////////////////////////////
//  1. Multiple subscriptions can be linked to an EventConnections instance
//  class that you can use later to remove all these subscriptions at once
//////////////////////////////////////////////////////////////////////////////

// create an instance of the EventConnections class
EventConnections deviceconnected_event_connections = new EventConnections();


// link to this instance when subscribing to an event (subscription to various events can be linked)
VRMixedReality.EventDeviceConnected.Connect(deviceconnected_event_connections, deviceconnected_event_handler);

// other subscriptions are also linked to this EventConnections instance 
// (e.g. you can subscribe using lambdas)
VRMixedReality.EventDeviceConnected.Connect(deviceconnected_event_connections, () => { 
		Log.Message("Handling DeviceConnected event lambda\n");
		}
	);

// later all of these linked subscriptions can be removed with a single line
deviceconnected_event_connections.DisconnectAll();

//////////////////////////////////////////////////////////////////////////////
//  2. You can subscribe and unsubscribe via the handler function directly
//////////////////////////////////////////////////////////////////////////////

// subscribe to the DeviceConnected event with a handler function
VRMixedReality.EventDeviceConnected.Connect(deviceconnected_event_handler);


// remove subscription to the DeviceConnected event later by the handler function
VRMixedReality.EventDeviceConnected.Disconnect(deviceconnected_event_handler);


//////////////////////////////////////////////////////////////////////////////
//   3. Subscribe to an event and unsubscribe later via an EventConnection instance
//////////////////////////////////////////////////////////////////////////////

// define a connection to be used to unsubscribe later
EventConnection deviceconnected_event_connection;

// subscribe to the DeviceConnected event with a lambda handler function and keeping the connection
deviceconnected_event_connection = VRMixedReality.EventDeviceConnected.Connect(() => { 
		Log.Message("Handling DeviceConnected event lambda\n");
	}
);

// ...

// you can temporarily disable a particular event connection 
deviceconnected_event_connection.Enabled = false;

// ... perform certain actions

// and enable it back when necessary
deviceconnected_event_connection.Enabled = true;

// ...

// remove the subscription later using the saved connection
deviceconnected_event_connection.Disconnect();

//////////////////////////////////////////////////////////////////////////////
//   4. Ignoring DeviceConnected events when necessary
//////////////////////////////////////////////////////////////////////////////

// you can temporarily disable the event to perform certain actions without triggering it
VRMixedReality.EventDeviceConnected.Enabled = false;

// ... actions to be performed

// and enable it back when necessary
VRMixedReality.EventDeviceConnected.Enabled = true;

Члены класса


void ApplySettings ( ) #

Updates the mixed reality settings to the current settings.Обновляет настройки смешанной реальности до текущих настроек.

bool IsChromaKeyConfigEnabled ( int index ) #

Returns the current value indicating if the chroma key configuration with the specified index is enabled.Возвращает текущее значение, указывающее, включена ли настройка цветового ключа с указанным индексом.

Аргументы

  • int index - Chroma key config index in the range from 0 to config count - 1.Индекс конфигурации цветового ключа в диапазоне от 0 до config count - 1.

Возвращаемое значение

1 the chroma key configuration is enabled; otherwise, 0.1 включена настройка цветового ключа; в противном случае - 0.

void SetChromaKeyConfigEnabled ( int index, bool enabled ) #

Sets a new value indicating if the chroma key configuration with the specified index is enabled.Устанавливает новое значение, указывающее, включена ли конфигурация цветового ключа с указанным индексом.

Аргументы

  • int index - Chroma key config index in the range from 0 to config count - 1.Индекс конфигурации цветового ключа в диапазоне от 0 до config count - 1.
  • bool enabled - 1 to enable the chroma key configuration; 0 to disable it.1, чтобы включить настройку цветового ключа; 0, чтобы отключить ее.

vec3 GetChromaKeyConfigFalloff ( int index ) #

Returns the current tolerance falloff values for HSV components of the chroma key target color.Возвращает текущие значения отклонения допуска для компонентов HSV целевого цвета цветового ключа.

Аргументы

  • int index - Chroma key config index in the range from 0 to config count - 1.Индекс конфигурации цветового ключа в диапазоне от 0 до config count - 1.

Возвращаемое значение

Current tolerance falloff values for HSV components of the chroma key target color. The range for each component is [0.0; 1.0].Текущие значения допустимого отклонения для компонентов HSV целевого цвета цветового ключа. Диапазон для каждого компонента равен [0.0; 1.0].

void SetChromaKeyConfigFalloff ( int index, vec3 falloff ) #

Sets new tolerance falloff values for HSV components of the chroma key target color.Устанавливает новые значения отклонения допуска для компонентов HSV целевого цвета цветового ключа.

Аргументы

  • int index - Chroma key config index in the range from 0 to config count - 1.Индекс конфигурации цветового ключа в диапазоне от 0 до config count - 1.
  • vec3 falloff - New tolerance falloff values to be set for HSV components of the chroma key target color. The range for each component is [0.0; 1.0].Новые значения отклонения допуска, которые будут установлены для компонентов HSV целевого цвета chroma key. Диапазон для каждого компонента равен [0.0; 1.0].

vec3 GetChromaKeyConfigTargetColor ( int index ) #

Returns the current chroma key target color.Возвращает текущий целевой цвет цветового ключа.

Аргументы

  • int index - Chroma key config index in the range from 0 to config count - 1.Индекс конфигурации цветового ключа в диапазоне от 0 до config count - 1.

Возвращаемое значение

Current chroma key target color in HSV colorspace. The range for each component is [0.0; 1.0].Текущий целевой цвет цветового ключа в цветовом пространстве HSV. Диапазон для каждого компонента равен [0.0; 1.0].

void SetChromaKeyConfigTargetColor ( int index, vec3 target_color ) #

Sets a new chroma key target color.Устанавливает новый целевой цвет цветового ключа.

Аргументы

  • int index - Chroma key config index in the range from 0 to config count - 1.Индекс конфигурации цветового ключа в диапазоне от 0 до config count - 1.
  • vec3 target_color - New chroma key target color to be set in HSV colorspace. The range for each component is [0.0; 1.0].Новый целевой цвет цветового ключа, который будет установлен в цветовом пространстве HSV. Диапазон для каждого компонента равен [0.0; 1.0].

vec3 GetChromaKeyConfigTolerance ( int index ) #

Returns the current tolerance values for HSV components of the chroma key target color.Возвращает текущие значения допуска для компонентов HSV целевого цвета цветового ключа.

Аргументы

  • int index - Chroma key config index in the range from 0 to config count - 1.Индекс конфигурации цветового ключа в диапазоне от 0 до config count - 1.

Возвращаемое значение

Current tolerance values for HSV components of the chroma key target color. The range for each component is [0.0; 1.0].Текущие допустимые значения для компонентов HSV целевого цвета chroma key. Диапазон для каждого компонента равен [0.0; 1.0].

void SetChromaKeyConfigTolerance ( int index, vec3 tolerance ) #

Sets new tolerance values for HSV components of the chroma key target color.Устанавливает новые значения допуска для компонентов HSV целевого цвета цветового ключа.

Аргументы

  • int index - Chroma key config index in the range from 0 to config count - 1.Индекс конфигурации цветового ключа в диапазоне от 0 до config count - 1.
  • vec3 tolerance - New tolerance values for HSV components of the chroma key target color to be set. The range for each component is [0.0; 1.0].Необходимо установить новые допустимые значения для компонентов HSV целевого цвета цветового ключа. Диапазон для каждого компонента равен [0.0; 1.0].

void ApplyChromaKeySettings ( int index ) #

Updates the settings of the chroma key configuration with the specified index to the current settings.Обновляет настройки конфигурации цветового ключа с указанным индексом до текущих настроек.

Аргументы

  • int index - Chroma key config index in the range from 0 to config count - 1.Индекс конфигурации цветового ключа в диапазоне от 0 до config count - 1.

GetCameraSupportedRawISO ( ) #

Returns a vector containing the ISO values that are set as valid for the connected device.Возвращает вектор, содержащий значения ISO, которые установлены как допустимые для подключенного устройства.

Возвращаемое значение

The vector containing the ISO values.Вектор, содержащий значения ISO.

VRMarkerObject GetMarkerObject ( short index ) #

Returns the marker object with the specified index.Возвращает объект-маркер с указанным индексом.

Аргументы

  • short index - Marker object index.Индекс объекта маркера.

Возвращаемое значение

Marker object.Объект-маркер.

VRMarkerObject GetMarkerObjectByID ( short marker_id ) #

Returns the marker object with the specified ID.Возвращает объект-маркер с указанным идентификатором.

Аргументы

  • short marker_id - Marker object ID.Идентификатор объекта маркера.

Возвращаемое значение

Marker object.Объект-маркер.
Последнее обновление: 19.04.2024
Build: ()