void OnEnable() { if (DeviceIndex >= 0) { var DeviceNames = PopCameraDevice.EnumCameraDevices(); DeviceName = DeviceNames[DeviceIndex].Serial; } Device = new PopCameraDevice.Device(DeviceName, Format); }
void OnEnable() { var DeviceNames = PopCameraDevice.EnumCameraDevices(); foreach (var Device in DeviceNames) { var FormatString = string.Join(",", Device.Formats); Debug.Log(Device.Serial + " formats: " + FormatString); } }