How to Render a Uiview with Transparent Background on an Scnplane in Arkit

How to render a UIView with transparent background on an SCNPlane in ARKit?

Try setting your view's isOpaque property to false:

let material = SCNMaterial()
viewController.view.isOpaque = false
material.diffuse.contents = viewController.view
planeGeometry.materials = [material]

ARKit -[UIView setAnimationsEnabled:] Performing any operation from a background thread on UIView or a subclass is not supported

I contacted Apple and they said this feature currently isn't supported. They sent me the info under a nda so I can't elaborate beyond that.

They did say if it was a feature I wanted I can send a request to their team to see if they would consider adding it.



Related Topics



Leave a reply



Submit