Description
The Hmd
field of the TrackedDeviceType
enumeration represents a head-mounted display, commonly referred to as a VR headset. This device is used to provide an immersive virtual reality experience by displaying stereoscopic 3D images and tracking the user's head movements.
Usage
Use the TrackedDeviceType.Hmd
field to identify or check for a head-mounted display device within your VR application. This can be useful for determining the type of device being interacted with or for filtering device-specific logic.
Example
// Example of using TrackedDeviceType.Hmd
void CheckDeviceType(TrackedDeviceType deviceType)
{
if (deviceType == TrackedDeviceType.Hmd)
{
// Handle logic specific to head-mounted displays
Console.WriteLine("Device is a head-mounted display.");
}
}