AtsushiSuzuki / unity-depthcapture-ios

Unity plugin to obtain depth map from iPhone camera.
ISC License
50 stars 5 forks source link

How can I use back camera? #7

Open menstood opened 2 years ago

menstood commented 2 years ago

I cannot use the back camera of iPhone 11. I've tried to pass the position parementer Position.Back when config the capture. What should I do? Thank you.

AtsushiSuzuki commented 2 years ago

Can you please tell me what exactly happens when used with iPhone 11? Exception at DepthCapture.Configure ?

I'm guessing that this plugin lacks support for newer device types, such as AVCaptureDeviceTypeBuiltInTripleCamera, AVCaptureDeviceTypeBuiltInDualWideCamera, etc. If you add AVCaptureDeviceTypeBuiltInTripleCamera to enum DeviceType and provide that to DepthCapture.Configure, it may work.