Tutorial Plugins?

there is tutorial how to do step by step a plugin ?

Thank you

Scinfu

Find a guide here. There are some example projects at the bottom of the page.

Basically you need to call following from c#

[DllImport("mybridge")]
private static extern void cppMethod();

Then you have to have a libmybridge.so file in your ‘Plugins/Android’ folder. The file is created with the Android NDK using JNI in c++ for example. And from there you can call Java methods.

in the documentation does not show how to create the plugin from 0 .

I am not familiar with Java and its tools .

Then you will first have to learn coding with Java and the Android SDK as thats the requirement to create any plugin to integrate with unity at all

I have to make a plugin for facebook and twitter, libraries have already been made by facebook and twitter ,
now remains for me to understand how to communicate c# < > java

Is it possible to call a plugin from Javascript?

@scinfu there are already facebook and twitter unity plugins out there. Right ?

@ina yes, from c# and from javascript.

Usual plugins will have .cs (c#) files supporting the calls to the plugin.
You then will call these c# classes from c# or from javascript to access the plugin methods.

so C# wrappers are needed to call the plugin’s, or can you call the plugin directly from JS?

I’ve written a tutorial on how to create an Android Plugin for Unity, please find it here:

http://www.platoevolved.com/blog/programming/android/creating-an-android-plugin-for-unity/

Just visit Link for great brief info about Plug-in with tutorial.