Unity3D与UIView集成 [英] Unity3D integration with UIView
问题描述
如果这个问题重复,请纠正我。
我刚遇到Unity3D,我只是想问一下是否有可能将Unity3D集成到其他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?
推荐答案
我认为这种方式不可能,因为生成的AppController.mm充当 UIApplicationDelegate
。即使你设法使它工作,听起来你从长远来看也不会有乐趣。主要的Unity3D更新可能会改变一些内部。
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.
但反过来说,从Unity3D调用Obj-C代码并显示任意UIViews绝对有效。请参阅如何在unity3d上使用xcode游戏,尤其是 Clever Martian的博客 - 使用iPhone Native UI和Unity 3 Pro进行实验。
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.
这篇关于Unity3D与UIView集成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!