I have made a plugin for unity->iOS communication, it worked perfectly and now I'm working on answering from plugin to unity via UnitySendMessage function. I want to build my plugin in a separate project, as it intended to be.
I tried to link two libraries into my plugin found in /Applications/Unity/Unity.app/Contents/PlaybackEngines/iPhonePlayer/iPhone-Trampoline/Libraries/
The code linked but it crashed the my app.
I need to invoke this function:
UnitySendMessage("GameObjectName1", "MethodName1", "Message to send");
So the question is: -Which headers do I need to include? - Which libraries do I have to link?