WebCamTexture resolution issue on iOS18

In Unity 2022.3.50f1, I encountered two issues with WebCamTexture:

  1. When I try to retrieve the availableResolutions from any WebCamTexture.devices, the width and height are always (0, 0).
    My code:
var webCamDevices = WebCamTexture.devices;
foreach (var camDevice in webCamDevices)
{
    var resolutions = camDevice.availableResolutions;
    Debug.Log(resolution.width + "," + resolution.height);
}
  1. When I set the requestedWidth and requestedHeight of the webcam using:
public WebCamTexture(string deviceName, int requestedWidth, int requestedHeight);

Regardless of the values I provide for requestedWidth and requestedHeight, the webcam always defaults to width = 1000 and height = 750.

These issues never occurred when I was using the previous version (2020.3.48f1). In that version, I could both retrieve camera resolutions and set the requestedWidth and requestedHeight correctly.

However, I had to upgrade my project from 2020.3.48f1 to 2022.3.50f1 because Application.OpenURL no longer works in iOS 18.

Does anyone know how to fix the webcam issues?

Unity version: 2022.3.50f1
Device: iPhone SE 2022 (iOS 18)

Have you been able to find a solution this?
I am getting the same error on iOS17 as well and with Unity 6

It looks like there is a bug in Unity which was discussing there: WebCamDevice.availableResolutions not working correctly on Unity 6 and iOS 17 - #4 by sgmdev

Issue tracking is there: Unity Issue Tracker - [iOS] WebCamDevice.availableResolutions returns a single resolution with width and height both 0 on some iOS devices

Hello!

Yep it looks like the correct bug report (Same issue as talked here) and it’s currently being actively looked at!