carbonr
carbonr

Reputation: 6067

How do you screenshot an ARKit camera view?

Looking for a way to capture a screenshot or video of the ARScene without the buttons and other subviews

Traditional screen capture captures everything visible on the screen including UI controls

Upvotes: 5

Views: 3886

Answers (1)

Alan
Alan

Reputation: 1142

ARSCNViews have a built in snapshot method that returns a UIImage of the ARScene

So in Objective-C you could do:

UIImage *image = [sceneView snapshot];

and in Swift

var image = sceneView.snapshot()

Upvotes: 21

Related Questions