- Home /
Question by
ronaldor1114 · Nov 11, 2013 at 03:53 AM ·
importpluginsc++
How to debug .DLL Plugins
I am using visual studio c++ Build my path-finding .dll file for unity plugins which saved in Assets->Plugins folder. However I can't Debug the .dll file in MonoDevelop. Does anyone know how to do that? Thanks
This is my PlugImport.cs
using UnityEngine; using System.Collections; using System; using System.Runtime.InteropServices; using IntPtr = System.IntPtr;
public class PluginImport : MonoBehaviour { //Lets make our calls from the Plugin [DllImport ("ASimplePlugin")] private static extern int PrintANumber();
[DllImport ("ASimplePlugin")]
private static extern IntPtr PrintHello();
[DllImport ("ASimplePlugin")]
private static extern int AddTwoIntegers(int i1,int i2);
[DllImport ("ASimplePlugin")]
private static extern float MultiTwoFloats(float f1,float f2);
[DllImport ("ASimplePlugin")]
private static extern float GetNodes(Vector4[] vertices, int[] trangles, int m_vCount);
Comment
Answer by ejpaari · Nov 11, 2013 at 08:27 AM
This might be helpful http://www.gamedev.net/page/resources/_/technical/game-programming/c-plugin-debug-log-with-unity-r3349