How to use an xcode game on unity3d

风流意气都作罢 提交于 2019-12-20 02:50:15

问题


I have a game built on xcode using objective c. this game needs to be integrated with another game developed in unity3d as a part of it. how can i do this? what plugins are available to achieve this??

The thing is that.. i have a unity3d game and i have few other games inside the main game(games inside one game). these small games are already built on xcode.. now i have to use these games inside the main unity game.. something like if i chose to play one of the games it has to load that particular xcode game.. how can i achieve this?? also if this is achieved.. can i build it on unity-android and expect it to work? or do i have to do it differently for android? Please guide..


回答1:


Have a look at the following resources about mixing Unity3D code with Objective-C native code:

  • Mixing Unity generated code with Objective-C in iOS?
  • iPhone & Unity3D: Integrating 3rd Party Static Libraries in Unity3D Generated XCode Projects
  • Unity Native Plugins: OS X

If both application modules need interact on a high frequency, I recommend a polling approach instead of SendMessage, because of a perfomance lack in the latter case.



来源:https://stackoverflow.com/questions/8321939/how-to-use-an-xcode-game-on-unity3d

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!