问题
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