Hello,
The RoomCaptureSession
seems to be initialized differently when it is access through the RoomCaptureView
compared to when it is created directly. In the second case, the captureSession.arSession
doesn't collect Lidar depth map.
roomCaptureView.captureSession.run(RoomCaptureSession.Configuration())
print(roomCaptureView.captureSession.arSession.currentFrame?.sceneDepth != nil)
// prints true
let captureSession = RoomCaptureSession()
captureSession.run(RoomCaptureSession.Configuration())
print(captureSession.arSession.currentFrame?.sceneDepth != nil)
// prints false
What solution do I have? I need my own custom Visualizer