Hello! I am using Unity Editor 5.5.2xf1 on Ubuntu 14.04.
I am writing a plugin in C++. I have exported the functions UnityPluginLoad() and UnityPluginUnload() as described here. However they are never called when running the script through the editor, and as a result s_CurrentAPI is always null. You can find the plugin here (in the branch “rendering”)
What am I doing wrong? Am I missing something?
Thanks in advance!
Well a suggestion is here: UnityPluginLoad not called in native plugin - Unity Engine - Unity Discussions , but it doesn’t help me either, because I get conflicting function definitions.
If you do this, you must specify In your project properties->Configuration Properties->Linker->Input->Module Defintion File, the file of your Module definition.
Have you found the solution to this?