Is it possible to take a snapshot of only the virtual content and a snapshot of only the real content like in SceneKit?

That’s a good question.

I think you can get some of the way there via the ARKit APIs to get the current frame.

You can also toggle the mode of an ARView to switch it to .nonAR view - then use ARView.snapshot() to grab a snapshot of the virtual content. And then switch it back.

However, I don’t believe that would give you exactly what you want - I think the ARView snapshot would not necessarily have a transparent background (if that’s what you need). And even then the performance of this may not be great.

You could also try setting the Environment background color to something with 100% alpha.

I’d suggest filing a feature request for this with Bug Reporting

Tagged with: