- Home /
Is it possible to build a standalone .net application that link UnityEngine.dll
Is there a way to link against UnityEngine.dll from a standalone .net application? Does UnityEngine.dll depends on mono to run?
If not possible, could that be done with the mono runtime instead.
The idea is to use UnityEngine.dll but have more control over the linking and startup process.
Answer by Lucas Meijer 1 · Oct 20, 2009 at 05:23 PM
This is not possible. UnityEngine.dll is a small .NET wrapper around the native Unity engine. Without the Unity engine itself, UnityEngine.dll is merely an empty wrapper around nothing.
There is no way to somehow get access to the Unity API in a homegrown .net application. The UnityEngine API is tightly coupled to its Unity host. They are one, and can't be split.
Is the native Unity engine composed by one or more dlls? If so they could be linked or placed in the search path of the standalone application. I figure that probably the standalone application would be require to call some unity3d native initialization before that work.
@$$anonymous$$: The engine itself is in native code inside the player executable and not in dynamic libraries.
Answer by jashan · Dec 10, 2009 at 06:04 PM
See also the related question: Is it possible to start Unity from a C# project ?
However, Lucas' answers covers it quite well, so just consider this "some extra information".
Your answer
Follow this Question
Related Questions
Why can't I build Web Player in Unity while I have no problems with building standalone versions? 2 Answers
Embedded resources for the managed plugin pictures 0 Answers
Can you start another application by running an Unity project? (using a proxy dll) 1 Answer
Dynamic linking library more optimized? 3 Answers