VisionPro not supported
Description of the bug
VisionPro is currently not included in the #if statements, thus not supported. When adding it, however, it throws errors, as for support of VisionPro, Enterprise support needs to be enabled.
Reproduction steps
Add plugin, compile for VisionPro.
Platform specs
Vision Pro, e.g. Unity 2022.3.47f1
Additional info
Someone else wrote a bridge for VisionPro (and Pico 4): https://github.com/styly-dev/EnterpriseCameraAccessPlugin, see here: https://github.com/styly-dev/EnterpriseCameraAccessPlugin/blob/develop/Packages/com.styly.enterprise-camera-access/Runtime/Scripts/EnterpriseCameraAccessManager.cs
I'd expect VisionPro to be unsupported for a long while. There are a few reasons for that:
- When I search "how to do ... in VisionPro", I usually find 0 results (both official and unofficial tutorials)
- The example you've sent is using Swift. I've always encountered Swift code while googling VisionPro. So it's possible that it actually requires Swift. In that case, I don't know Swift, only Objective-C. I'll need to learn both Swift and how to use Swift in Unity. If I were developing on VisionPro, I'd have to; but right now I have no motivation to do so. Objective-C works fine for me
I'd like to clarify that this plugin simply opens the device's camera, tells it to capture an image or video and waits for the camera to return the filepath of the image/video. If you were looking for a live camera feed similar to the GitHub repo you've sent, that's not supported at the moment. But if you were indeed after NativeCamera's functionality, may I ask why a screenshot or screen recording isn't sufficient?
We are developing a cross-platform learning solution for XR (https://github.com/WEKIT-ECS/MIRAGE-XR/), and have used your wonderful package on all other platforms :) - it seems a screenshot is a workaround that we could use, but of course we would love it if such 'fallback' functionality could be included in your package, as it would help keep code beautiful.
I'd need to emulate RecordVideo as well which requires screen recording and that's beyond my technical skillset right now :D I hope you find great success with your project! This issue should remain open until it's addressed (no ETA or promises as explained).
We will have to tackle this, so I will post an update if we manage to solve it - might take a bit, though!