如何在unity3d上使用Xcode游戏 [英] How to use an xcode game on unity3d

查看:170
本文介绍了如何在unity3d上使用Xcode游戏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个使用目标c在xcode上构建的游戏.该游戏需要与在unity3d中开发的另一款游戏集成在一起.我怎样才能做到这一点?有哪些插件可以实现这一目标?

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??

问题是..我有一个unity3d游戏,而我在主游戏中只有几个其他游戏(一个游戏中的游戏).这些小游戏已经建立在xcode上.现在我必须在主要的统一游戏中使用这些游戏. ??同样如果实现了..我可以在unity-android上构建它并期望它工作吗?还是我必须为Android做不同的事情?请指导.

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..

推荐答案

看看以下有关将Unity3D代码与Objective-C本机代码混合的资源:

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

如果两个应用程序模块都需要高频交互,我建议使用轮询方法而不是SendMessage,因为在后一种情况下缺乏性能.

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.

这篇关于如何在unity3d上使用Xcode游戏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆