Description
The IsHandTracked
property indicates whether the VR controller is currently being represented using full hand tracking. This property is useful for determining if the controller is capable of providing detailed hand movement data, which can be used for more immersive and interactive VR experiences.
Usage
To check if a VR controller is using full hand tracking, access the IsHandTracked
property on an instance of VRController
. This property returns a boolean value, where true
indicates that hand tracking is active, and false
indicates that it is not.
Example
// Example of checking if a VR controller is using hand tracking
VRController vrController = new VRController();
if (vrController.IsHandTracked)
{
// Perform actions that require hand tracking
Console.WriteLine("Hand tracking is active.");
}
else
{
// Fallback to standard controller input
Console.WriteLine("Hand tracking is not active.");
}