Is there a way to use the UnityEngine resource for compiling without installing Unity?

Hey guys, I was wondering if there was any way I could set up a way to compile my C# code which includes UnityEngine references, without installing Unity itself. The reason I want to do this is I have Unity on my home computer, but not on my school computer and there is no way to install Unity there. I do, however, have terminal and code editor access on a virtual machine (Ubuntu via Cloud9). Is there something I can install in order to compile scripts using the UnityEngine references? Thanks in advance.

Yes.

But the compiled result will be a dll that you can then drop into your unity projects to use. You won’t get a compiled game, you’ll just a compiled library of scripts.

You need a mono/.net compiler (you can use Visual Studio, MonoDevelop, or the command line compilers from either or).

You just need to make sure you target .Net framework 3.5, and copy over the unity dll’s and reference them in your code project/solution. Those dll’s can be found in:

…/Unity Install Directory/Editor/Data/Managed

and are:

UnityEngine.dll
UnityEditor.dll (if you want to write editor scripts)

And if you want UI stuff you have to go to:

…/Unity Install Directory/Editor/Data/UnityExtensions/Unity/GUISystem

and get:
UnityEngine.UI.dll

If you need anything not in those, look in the folders near those to find the other dll’s, like Networking and the sort.

Thank you! This was exactly what I was looking for!