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.
Topic:
Graphics & Games
SubTopic:
RealityKit
Tags: