I had tested the diffuse.contents property, attach a view to it, it work well many times, the ui touch gestures also work well , but the UIEditField can't get the focus, and the input method can't be ejected.
And I need to handle the gestures of the SCNNode, rotations, scales, transforming, these are troubles!
On android platform, in the SceneForm (ARKit ) scene , it use ViewRenderable to load a view.xml, it had same problems with ARKit.
Post
Replies
Boosts
Views
Activity
Thanks arthurfromberlin.
My UIView is animated, and is a interactive view, maybe contain a web, a table, a list, some buttons, and so on.
In ARKit+SceneKit project, i see someone loading view in the SCNMaterial.diffuse.contents, it work well, as following:
private func show(viewController: BillboardViewController) {
let material = SCNMaterial()
material.isDoubleSided = true
material.cullMode = .front
material.diffuse.contents = viewController.view
billboard?.viewController = viewController
billboard?.billboardNode?.geometry?.materials = [material]
}
But, if i use RealityKit to build a AR scene, it can't use SCNNode and SCNMaterial to create a entity, so , i don't know how to show my UIView in the AR scene.
I read the document of the DrawableQueue carefully, but i don't think it can achieve the functions I need, it lack the ui events loop.