Version: Unity 6.0 (6000.0)
Language : English
Introduction to native plug-ins in Unity
Call unmanaged functions from managed code

Call functions

Native plug-in interoperation works in both directions: managed C# code can call unmanaged functions in a native plug-in, and unmanaged code can call back into managed functions through a function pointer.

Topic Description
Call unmanaged functions from managed code Declare and call an unmanaged function in a native plug-in from your C# scripts.
Call managed functions from unmanaged code Pass a C# delegate to native code so that unmanaged functions can call back into your managed code.

Additional resources

Introduction to native plug-ins in Unity
Call unmanaged functions from managed code