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.
@Daniel: 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".
Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.
The best place to ask and answer questions about development with Unity.
To help users navigate the site we have posted a site navigation guide.
If you are a new user to Unity Answers, check out our FAQ for more information.
Make sure to check out our Knowledge Base for commonly asked Unity questions.
If you are a moderator, see our Moderator Guidelines page.
We are making improvements to UA, see the list of changes.
Answers and Comments
No one has followed this question yet.
GameKit Linker Failure
Why can't I build Web Player in Unity while I have no problems with building standalone versions?
Embedded resources for the managed plugin pictures
Dynamic linking library more optimized?
Can you start another application by running an Unity project? (using a proxy dll)