Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unity3D integration with UIView

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?

like image 268
L N Avatar asked Dec 01 '11 03:12

L N


People also ask

Can I use Swift with Unity?

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.


1 Answers

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.

like image 118
Kay Avatar answered Oct 22 '22 04:10

Kay