- Home /
Porting existing C/C++ codebase
I am learning about Unity and it seems like it wouldn't make a good candidate for an existing C/C++ game. My games use a custom C/C++ 2d graphics engine, from my understanding I would have to create a plugin on Windows so Unity could access my C/C++ code and call my game functions?
This wouldn't be too big of a problem, but I didn't find anything about iOS, OSX, or Android plugins, do these work the same way a Windows DLL/plugin would work? Since I already have iOS and OSX support in my engine it seems like it is probably a waste of time for only Android support since I have to compile and wrap my code as a plugin separately for each platform, don't you think so?
It seems like a library/engine that is C/C++ would be a better fit for me, like SDL, but I wanted to make sure I wasn't missing information about Unity.
I think you are better off not using Unity under those circumstances - Unity on iOS for instance can load a CLR based DLL - but I doubt very much you will get unmanaged code working as the compiler won't be able to access it.
Your answer
Follow this Question
Related Questions
Is There A Game Episode Launcher Plugin For iPad? 0 Answers
what is the best way to do this game? 2 Answers
What are the sytem requirements? 0 Answers
expecting (, found 'OnConnectedToServer'. 0 Answers
Game Lags in Unity & after Build 4 Answers