Search Unity

Question Mono interop for Native Plugin

Discussion in 'Scripting' started by rohan-zatun, Mar 8, 2021.

  1. rohan-zatun

    rohan-zatun

    Joined:
    Jan 13, 2021
    Posts:
    14
    Hello,

    I have been recently trying to build a native plugin for Unity and I came across this thread:
    https://forum.unity.com/threads/pinvoke-mono_add_internal_call-c-and-c.172886/

    And I would like to know if it is indeed possible to use Mono Interop with Unity in this way, using mono_add_internal_call.

    I have tried building a DLL linked to a mono library, but Unity is not able to load the plugin. I know that Unity uses its own implementation of Mono-Runtime, but is there a way to link that to the DLL when building?