- Home /
Reference DLL's
Hi All,
I'm trying to reference three dll's into my project but for some reason Unity won't recognize them. When I run the game Unity will give me the error below. The type or namespace name 'Drawing' does not exist in the namespace 'System'. Are you missing an assembly reference?
When I close and restart the project the reference dll's aren't associated in the script anymore. I'm using Visual Studio 2013 as my IDE and Unity version 5.1.2f1. The three dll's I'm referencing are the:
System.Drawing.dll,
NewtonSoft.Json.dll,
and a custom C# dll that I compiled with some simple classes.
I've searched the forum high and low and have been unsuccessful at finding a solution to this. I've tried placing the dll's in the Unity application directory: C:\Program Files\Unity\Editor, as well as the project directory: E:\Example_Files\Test_References_01\Library\UnityAssemblies
Any help would be greatly appreciated. Thanks in advance!!
I've searched some more and was able to find a solution to the problem above. I created a DLL folder in my project and dragged and dropped the dll's into that folder. Visual studio and Unity were able to dynamically read those files. For the Json file I had to load the .Net 2.0 version.
Answer by steakpinball · Sep 09, 2015 at 02:15 PM
Put the DLLs in the Assets
folder in the project. See more info about plugins at http://docs.unity3d.com/Manual/Plugins.html
It doesnt work , i have DLL in my project - Assets/Plugins and after compilation it doesnt work. do you know why ?