Home

Awesome

Unity Native Plugin Builder

Unity Native Plugin Builder is an Editor extension to automate the creation and the cross platform compilation of native Unity plugins.

Based on the CMake build system, you can create native c++ plugins, manage multiple build options and configurations, compile code, and copy binaries to the correct plugin folder in the Unity project, all with a press of a button.

Prerequisite software

Make sure to install CMake, if not installed already.

Supported platforms

Multiple plugins with multiple builds are supported.

These platforms are supported (when available):

We are looking into supporting more platforms (Console, etc)

Getting started

  1. Add the content of the repo to your project in Assets/NativePluginBuilder folder (or add as git submodule)
  2. Go to Window -> Native Plugin Builder
  3. Go to the settings tab, and make sure that there is a CMake verion in the editor.
  4. Go to the plugins tab, and create a new plugin
  5. A new folder is now created. Add the MyPluginExample.cs script to a GameObject
  6. Build the plugin for the Editor (The default build options should work for the editor)
  7. Hit play!

The editor

Using the editor you can create and define multiple plugins each with multiple build options.

<img src="https://raw.github.com/iBicha/UnityNativePluginBuilder/master/Screenshots~/screen1.png" height="500">

Contribution:

PRs and issues are always welcome. This project is in early stages, and does not implement complex features, such as the ones supported by CMake. But it will grow more and more, as developers meet specific needs for their c++ projects. If you see a missing feature or an error, please do report it.