Now you can use the dll in Unity, go back to your Visual Studio editor (with the dll project code) and attach debugger to the Unity process or download the VS Unity tools, then you get a new "Attach to Unity" button (or something like that), select your Unity editor and attach it. Maybe that was a requirement for older Unity versions? I still put them in a "Plugins" folder just to be sure) (Some people say that you should put in a folder called "Plugins" but for C# dlls it seems to work no matter where you put them. Write your code, then build (Debug build) and copy the output Dll(s) + pdb files into my Unity project Asset folder. Change the project setting debug to "Portable". Im not sure if I 100% understood your question, but what I do and works is create a C# project in Visual Studio and C# library (DLL) as project type.
0 Comments
Leave a Reply. |