How to create a Native Android Plugin for Unity

Building a Unity plugin for Android in Java is pretty straightforward, although if you have never done it, this is what you need to know. Assuming that you have Unity installed on your machine and you have already started a project, download and install the Android SDK with the ADT Bundle, this also contains Eclipse which will be used to create the JAR file. – Set up the project Open up Ecplise and create a new Android Application Project, name it as you wish, make sure to use the same package name you used in Unity Player Settings. * Just as in Unity: And include the “classes.jar” that you can find in this folder: “C:\Program Files (x86)\Unity\Editor\Data\PlaybackEngines\androiddevelopmentplayer\bin\classes.jar” To include a JAR right click on the project and click “Properties” then… [Read more »]