Hi,
That may sound stupid, but i have done some search and tests but i can’t seem to figure out the correct way to do it. Since its Unity, there probably a different way to do it. I try to include it in Visual Studio as reference… but it didn’t work.
I have a library done in C# which i want to reference in my Unity project. Basically the library once built generate a DLL which i want to include in my project. How do we proceed ?
Also since it is in an external library, how should i debug it with Unity ?
Thanks!
Hi,
just dropping it anywhere in your projects Assets folder or any of its subfolders will do. You’ll probably want to drop it to “Plugins” folder, as that’s the most logical place for it to be in.
As for debugging - you debug them just like your normal C# code: drop the source file in the debugger and place a breakpoint. Note though, Microsoft C# compiler produces .pdb debugging information, while in Unity editor and most of the platforms, it runs on Mono, so it requires debugging information in .mdb files (or the breakpoints will not be hit). There are tools that convert between the two, and if you prefer, you can rebuild the assembly using Mono C# compiler.
Alright thanks for your replies!