November 25, 2015
[TUTORIAL] How to Write Native Plugins for Unity
http://www.alanzucconi.com/2015/10/11/how-to-write-native-plugins-for-unity/
Unity has the ability to import pieces of code written (and compiled) in other languages; they are called Native Plugins, and this tutorial will teach you how to build them.
Step 1: Creating a C++ project
Step 2: Writing the library
Step 3: Compiling
Step 4: Importing in Unity
Step 5: Using in Unity
Source codes:
Visual Studio 2015 C++ project (DLL source code)
Unity package (including the DLL)
