Get Raw Sensor Data
Updated: Apr 15, 2026
Backend Limitation
On the NativeOpenXR backend (recommended and default since Meta XR Plugin v65+), GetRawSensorData is not implemented and does not modify output parameters. This function is only operational on the legacy OVRPlugin backend.GetRawSensorData returns raw Inertial Measurement Unit (IMU) sensor data from a tracked device, such as angular velocity and linear acceleration.
GetRawSensorData in UOculusXRFunctionLibrary returns raw sensor readings from a tracked device. On the legacy OVRPlugin backend, if the device does not support a particular sensor reading, the corresponding output parameter is not modified. On the NativeOpenXR backend, this function is not implemented and logs a warning without modifying output parameters.
- Device Type (
EOculusXRTrackedDeviceType): Selects which device to read sensor data from. Defaults to HMD. Options include:
- No Devices: No device selected. The function does not retrieve sensor data.
- HMD: Reads sensor data from the headset.
- Left Hand: Reads sensor data from the left controller.
- Right Hand: Reads sensor data from the right controller.
- All Hands: Reads sensor data from any available controller, regardless of whether it is associated with the left or right hand.
- Device Object Zero: Reads sensor data from an auxiliary tracked object. This is a legacy device type.
- All Devices: Reads sensor data from all available tracked devices.
- Angular Acceleration (
FVector): Angular acceleration in radians per second squared (rad/s²). This parameter is deprecated in the source SDK. - Linear Acceleration (
FVector): Linear acceleration in meters per second squared (m/s²). This parameter is deprecated in the source SDK. - Angular Velocity (
FVector): Angular velocity in radians per second. - Linear Velocity (
FVector): Linear velocity in meters per second. - Time in Seconds (
float): The time, in seconds, when the reported Inertial Measurement Unit (IMU) reading occurred.
- Get Pose: Returns the current orientation and position of the HMD.
- Is Device Tracked: Checks whether a tracked device type is currently being tracked by sensors.