This page has been translated automatically.
Видеоуроки
Интерфейс
Основы
Продвинутый уровень
Подсказки и советы
Основы
Программирование на C#
Рендеринг
Профессиональный уровень (SIM)
Принципы работы
Свойства (properties)
Компонентная Система
Рендер
Режимы вывода изображения
Физика
Браузер SDK 2
Лицензирование и типы лицензий
Дополнения (Add-Ons)
Демонстрационные проекты
API Samples
Редактор 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
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.InputVRHead Class

Inherits from: InputVRDevice

The class handles head-mounted display (HMD) input.

InputVRHead Class

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

MODEL_TYPE#

ИмяОписание
UNKNOWN = 0Unknown HMD.
OCULUS_BEGIN = 1The first element to be used for iteration through the model types of the Oculus Rift HMD.
OCULUS_DK2 = 1Oculus Rift DK2
OCULUS_CB = 2Oculus Rift CB
OCULUS_OTHER = 3Other model of the Oculus Rift HMD.
OCULUS_E3_2015 = 4Oculus Rift E3 2015
OCULUS_ES06 = 5Oculus Rift ES06
OCULUS_ES09 = 6Oculus Rift ES09
OCULUS_ES11 = 7Oculus Rift ES11
OCULUS_RIFT = 8Oculus Rift CV1
OCULUS_RIFT_S = 9Oculus Rift Rift S
OCULUS_END = 9The last element to be used for iteration through the model types of the Oculus Rift HMD.
VARJO_BEGIN = 10The first element to be used for iteration through the model types of the Varjo HMD.
VARJO_VR_1 = 10Varjo VR-1
VARJO_XR_1 = 11Varjo XR-1
VARJO_VR_2 = 12Varjo VR-2
VARJO_VR_2_PRO = 13Varjo VR-2 Pro
VARJO_VR_3 = 14Varjo VR-3
VARJO_XR_3 = 15Varjo XR-3
VARJO_AERO = 16Varjo AERO
VARJO_END = 16The last element to be used for iteration through the model types of the Varjo HMD.
OPENVR_BEGIN = 17The first element to be used for iteration through the model types of the HMD.
OPENVR_HTC_VIVE = 17HTC Vive
OPENVR_HTC_VIVE_PRO = 18HTC Vive Pro MV
OPENVR_HTC_FOCUS = 19HTC Vive Focus
OPENVR_VALVE_INDEX = 20Valve Index
OPENVR_END = 20The last element to be used for iteration through the model types of the HMD.
NUM_MODEL_TYPES = 21Total number of HMD model types.

Properties

InputVRHead.MODEL_TYPE ModelType#

The HMD model type.

bool TrackingPositionEnabled#

The true if position tracking is enabled; otherwise, false.

bool TrackingRotationEnabled#

The true if rotation tracking is enabled; otherwise, false.

float RefreshRate#

The display refresh rate, in Hz.

float[] SupportedRefreshRates#

The vector of supported display refresh rates, in Hz.

Members


bool HasButtons ( ) #

Returns a value indicating if the HMD has buttons.

Return value

true if there are buttons; otherwise, false.

float[] GetSupportedRefreshRates ( ) #

Returns an array of supported display refresh rates, in Hz, with at least one supported refresh rate.

Return value

The vector of supported display refresh rates, in Hz.

void SetRefreshRate ( float rate ) #

Sets the display refresh rate, if supported.

Arguments

  • float rate - The display refresh rate, in Hz.

float GetRefreshRate ( ) #

Returns the current display refresh rate, in Hz.

Return value

The display refresh rate, in Hz.

bool IsButtonPressed ( Input.VR_BUTTON button ) #

Returns a value indicating if the specified button is pressed. Check this value to perform continuous actions.

Arguments

Return value

true if the button is pressed; otherwise, false.

bool IsButtonDown ( Input.VR_BUTTON button ) #

Returns a value indicating if the specified button was pressed during the current frame.

Arguments

Return value

true if the button was pressed; otherwise, false.

bool IsButtonUp ( Input.VR_BUTTON button ) #

Returns a value indicating if the specified button was released during the current frame.

Arguments

Return value

true if the button was released; otherwise, false.

InputEventVRButton GetButtonEvent ( Input.VR_BUTTON button ) #

Returns the currently processed HMD button input event.

Arguments

Return value

HMD button input event, or null if there are no events for the specified button in the current frame.

int GetButtonEvents ( Input.VR_BUTTON button, InputEventVRButton[] OUT_events ) #

Returns the number of input events for the specified HMD button and puts the events to the specified output buffer.

Arguments

  • Input.VR_BUTTON button - Button.
  • InputEventVRButton[] OUT_events - Buffer with HMD button input events.
    Notice
    This output buffer is to be filled by the Engine as a result of executing the method.

Return value

Number of input events for the specified HMD button.
Last update: 13.12.2024
Build: ()