book_4_sparkGenerated
code_blocksInput

Description

The TrackedDeviceRole.Camera field is a member of the TrackedDeviceRole enumeration within the Sandbox.VR namespace. It represents a camera device, such as a base station, used in virtual reality environments. This role is typically assigned to devices that are responsible for tracking the position and orientation of other VR devices within a space.

Usage

Use the TrackedDeviceRole.Camera field when you need to specify or check the role of a device that functions as a camera or base station in a VR setup. This can be useful for applications that need to differentiate between various tracked devices and handle them accordingly.

Example

// Example of using TrackedDeviceRole.Camera

public void CheckDeviceRole(TrackedDeviceRole deviceRole)
{
    if (deviceRole == TrackedDeviceRole.Camera)
    {
        // Handle camera-specific logic
        // For example, initializing tracking systems or adjusting settings
    }
}