This page has been translated automatically.
Video Tutorials
Interface
Essentials
Advanced
How To
Basics
Rendering
Professional (SIM)
UnigineEditor
Interface Overview
Assets Workflow
Version Control
Settings and Preferences
Working With Projects
Adjusting Node Parameters
Setting Up Materials
Setting Up Properties
Lighting
Sandworm
Using Editor Tools for Specific Tasks
Extending Editor Functionality
Built-in Node Types
Nodes
Objects
Effects
Decals
Light Sources
Geodetics
World Nodes
Sound Objects
Pathfinding Objects
Players
Programming
Fundamentals
Setting Up Development Environment
Usage Examples
C++
C#
UnigineScript
UUSL (Unified UNIGINE Shader Language)
Plugins
File Formats
Materials and Shaders
Rebuilding the Engine Tools
GUI
Double Precision Coordinates
API Reference
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
Content Creation
Content Optimization
Materials
Material Nodes Library
Miscellaneous
Input
Math
Matrix
Textures
Art Samples
Tutorials

VRHandTracking Class

Warning
The scope of applications for UnigineScript is limited to implementing materials-related logic (material expressions, scriptable materials, brush materials). Do not use UnigineScript as a language for application logic, please consider C#/C++ instead, as these APIs are the preferred ones. Availability of new Engine features in UnigineScript (beyond its scope of applications) is not guaranteed, as the current level of support assumes only fixing critical issues.

This class manages the VR hand tracking feature. It allows visualizing the bones basis, velocity and size to check and configure the hands configuration.

Notice
VR hand tracking is available for the Varjo devices only.

VRHandTracking Class

Members

VRHand getHandLeft() const#

Returns the current left hand.

Return value

Current left hand.

VRHand getHandRight() const#

Returns the current right hand.

Return value

Current right hand.

void setVisualizerEnabled ( int enabled = 0 ) #

Console: vr_hand_tracking_visualizer_enabled
Sets a new value indicating if the visualizer for hands is enabled. This option requires the visualizer mode to be enabled. This parameter is stored in the following configuration file: *.boot.

Arguments

  • int enabled - The the visualizer for hands The default value is false.

int isVisualizerEnabled() const#

Console: vr_hand_tracking_visualizer_enabled
Returns the current value indicating if the visualizer for hands is enabled. This option requires the visualizer mode to be enabled. This parameter is stored in the following configuration file: *.boot.

Return value

Current the visualizer for hands The default value is false.

void setShowBasis ( int basis = 0 ) #

Console: vr_hand_tracking_show_basis
Sets a new value indicating if the visualizer for the basis of each hand bone is enabled. This option requires the hand visualizer to be enabled. This parameter is stored in the following configuration file: *.boot.

Arguments

  • int basis - The the visualizer for the basis of each hand bone The default value is false.

int isShowBasis() const#

Console: vr_hand_tracking_show_basis
Returns the current value indicating if the visualizer for the basis of each hand bone is enabled. This option requires the hand visualizer to be enabled. This parameter is stored in the following configuration file: *.boot.

Return value

Current the visualizer for the basis of each hand bone The default value is false.

void setShowVelocity ( int velocity = 0 ) #

Console: vr_hand_tracking_show_velocity
Sets a new value indicating if the visualizer for the velocity vectors of each hand bone is enabled. This option requires the hand visualizer to be enabled. This parameter is stored in the following configuration file: *.boot.

Arguments

  • int velocity - The the visualizer for the velocity vectors of each hand bone The default value is false.

int isShowVelocity() const#

Console: vr_hand_tracking_show_velocity
Returns the current value indicating if the visualizer for the velocity vectors of each hand bone is enabled. This option requires the hand visualizer to be enabled. This parameter is stored in the following configuration file: *.boot.

Return value

Current the visualizer for the velocity vectors of each hand bone The default value is false.

void setShowBoneSizes ( int sizes = 0 ) #

Console: vr_hand_tracking_show_bone_sizes
Sets a new value indicating if the visualizer for the size of each hand bone is enabled. This option requires the hand visualizer to be enabled. This parameter is stored in the following configuration file: *.boot.

Arguments

  • int sizes - The the visualizer for the size of each hand bone The default value is false.

int isShowBoneSizes() const#

Console: vr_hand_tracking_show_bone_sizes
Returns the current value indicating if the visualizer for the size of each hand bone is enabled. This option requires the hand visualizer to be enabled. This parameter is stored in the following configuration file: *.boot.

Return value

Current the visualizer for the size of each hand bone The default value is false.

The information on this page is valid for UNIGINE 2.20 SDK.

Last update: 2024-10-16
Build: ()