Native plug-ins
Details on using native plug-ins.
Read time 1 minuteLast updated 10 days ago
Unity supports native plug-ins, which are libraries of unmanaged code written in languages such as C, C++, and Objective-C. Plug-ins let the managed code you write in C# to call functions from these libraries. This feature allows you to integrate middleware libraries and to reuse existing C/C++ code. You can use both precompiled libraries and source code files as plug-ins. When you use source code, Unity compiles and links the plug-in code statically.
Topic | Description |
|---|---|
| Overview of native plug-ins in Unity | How to import and use native plug-ins. |
| Call functions | How to call unmanaged functions in a native plug-in from managed C# code and how to callback from unmanaged code to managed code. |
| Pass data | How to exchange data between managed and unmanaged code. |
For platform-specific information on native plug-ins, refer to the relevant section under Platform development.