Hi,
I’m trying SwiftUI and would like to have a Unity display
I can see it’s possible to have SceneKit view’s running in SwiftUI.
I’ve tried a similar approach for Unity, but I get nothing displayed, has anyone else had any breakthroughs?
struct UnityUIView : UIViewRepresentable {
func makeUIView(context: Context) -> UIView {
let appDelegate = UIApplication.shared.delegate as? AppDelegate
appDelegate.startUnity()
return UnityGetGLView()!
}
func updateUIView(_ view: UIView, context: Context) {
}
}