'AVCaptureDataOutputSynchronizerDelegate' is unavailable: not available on visionOS

in developing an existing VR app to VisionOS, This is the error I get in xCode

‘AVCaptureDataOutputSynchronizerDelegate’ is unavailable: not available on visionOS

Any ideas?
Thanks
~be

Do you have a WebCamTexture in your project? If so, I would wrap that with an #if !UNITY_VISIONOS/#endif.

Either way, there are a number of APIs that visionOS does not support in AVCapture that will cause compile errors. The compiler errors will be resolved in a future release, though I have no ETA for that now.

Thanks Joejo, I am not using WebCamTexture, but I have modified the URP forward renderer to support Stencil/Masks (portal like effect). Worked on all other device builds, but I know VisionOS is specific…

Is there shadergraph support/help I can get for VisionOS transition?
Thanks so much,
~be

I’m not sure why URP would in any way add AV cam support to your project?

@AndrzejUnity Might be able to help with shader graph support.

For MR apps, we convert shader graphs to MaterialX, which has a big set of caveats and restrictions. For VR, though, we generally expect them to work the same as on other platforms (especially iOS, where, as on visionOS, shader graphs are converted to Metal shaders).

@AndrzejUnity Thanks, I am trying to use this for VR on VisionOS, so I am using the Sample Scene Unbounded from the VisionOS Template 1.1.4. The shaders have worked great in VR, iOs and even Html5.
What would you recommend?
Thanks
~be

Seems like shaders are working fine in Unity… And I am using the sampleSceneUnbounded from the VisionOsTemplate 1.1.4 with just my materials and shaders included.
This is the error I get in xCode, but I am not trying to access any camera from my own code


thanks!
~be

Without seeing your project I am not sure why you would be running into this. If you can file a bug report and post the incident ID here (IN-XXXXXX) I can take a look and see if I can figure something out.