Use a C# dll that references UnityEngine.dll and UnityEditor.dll

Hi,

is it possible to use dlls in unity projects, that encapsulate some c# unity functionality and therefore need to reference UnityEngine.dll and/or UnityEditor.dll? Using these dlls in a unity project seems to be fine, but as soon as I try to build it (e.g. for windows) there are compiler errors.

The alternative to using dlls would be to build unitypackages, but I don’t know any way to distribute the unity package to all projects on updates, as I can do by using dlls and svn:externals.

Any ideas? Thanks in advance!

For everyone who os interested in the solution:

Ok, finally I found out, what the problem was. I had some classes that are used in the editor and they were not in a folder named “Editor” (since they were in a compiled Dll). Luckily, I could solve that by publishing the c#-classes and importing them into my projects by svn:externals.