INNER CODE UNIT · C#
SensorData
Unity-Technologies/com.unity.perception · com.unity.perception/Runtime/PerceptionAnalyticsStructs.cs:114
class SensorData
{
public string type;
public int width;
public int height;
public int perceptionCameraIndex = -1;
public static SensorData FromCameraSensor(CameraSensor sensor)
{
if (sensor == null)
return null;
var sensorData = new SensorData() {
type = "Unknown",
width = sensor.pixelWidth,
height = sensor.pixelHeight
};
if (sensor is UnityCameraSensor _) {