I am trying to run the sample native plugin from Unity - Manual: Low-level native plug-in interface in Windows x86, but Unity is not calling my UnitySetGraphics
or UnityRenderEvent
functions. I have tried changing the method signature to __UnitySetGraphicsDevice__
and __UnityRenderEvent__
but nothing changed.
I checked whether the functions were called by setting breakpoints in Visual Studio and attaching the debugger to Unity. SetTimeFromUnity
is being called every frame.
I am using Visual Studio 2013, building x86.
Here is the dll in Dependancy Walker:
Notice no name mangling.
Edit: Tried Visual Studio 2008 with no success.