Integrating ios Unity 3d into ios source code
2 answers
Check it:
http://docs.unity3d.com/Manual/PluginsForIOS.html
In short: Start over with a simple class, say FooPlugin.cs in Unity3D
, that does the following:
[DllImport ("__Internal")]
private static extern float _FooPluginFunction();
which has a public method:
public static void FooPluginFunction()
{
_FooPluginFunction(); // call the native extension
}
Then create an XCode project and add FooPlugin.m that implements this method:
void FooPluginFunction() {
// this is where native world is met
}
+1
source to share