Unity3D integration with UIView

前端 未结 4 1648
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-02-01 07:22

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?

4条回答
  •  后悔当初
    2021-02-01 08:17

    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.

提交回复
热议问题