bool IsHandTracked { get; set; }

robot_2Generated
code_blocksInput

Description

The IsHandTracked property of the VRController class indicates whether the controller is currently being represented using full hand tracking. This property returns a boolean value, where true signifies that hand tracking is active, and false indicates that it is not.

Usage

To determine if a VR controller is using full hand tracking, access the IsHandTracked property on an instance of VRController. This can be useful for adapting gameplay or UI elements based on the availability of hand tracking.

Example

// Example of checking if the VR controller is using hand tracking
VRController controller = new VRController();

if (controller.IsHandTracked)
{
    // Perform actions specific to hand tracking
    Console.WriteLine("Hand tracking is active.");
}
else
{
    // Perform actions for standard controller use
    Console.WriteLine("Hand tracking is not active.");
}