Please correct me if this question is duplicated. I just came across Unity3D and I just want to ask if it is possible to integrate Unity3D on top of other UIView?
Simply building the Unity project will build for iOS device and simulator, and link those build products in the Swift project. From there, the native Swift code can present or dismiss the Unity scene just like any other view controller.
I think it's not possible that way because the generated AppController.mm acts as UIApplicationDelegate
. And even if you manage to get it working, it sounds like you won't have fun on the long run. Major Unity3D updates might change some internals.
But the other way round i.e. calling Obj-C code from Unity3D and showing arbitrary UIViews is definitly working. See How to use an xcode game on unity3d especially Clever Martian's Blog - An Experiment with iPhone Native UI and Unity 3 Pro.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With