Dynamic dll loading

Hi,

We are trying to dynamically load .net dlls in unity 2.0 using appdomains

Is it possible to do this ? We are having trouble doing this and are wondering if the problem is with Unity and Mono ?

We can do this in our own standalone applications already.
1.) c++ app that spawns a thread and calls a mono assembly which creates a new appdomain that loads another assembly. In the new loaded assembly we create a new appdomain that loads another assembly.

Any ideas ?

Thanks,

Ok,

We have found out the proper way to do dynamic dll loading in unity using appDomains.

The loader class that one creates must exist in a separate dll or outside of the dll that the appdomain creation code is located. This means that the loader class should not be added to unity and needs to be accessed via a separate dll.

We initially had the loader class in the unity project and when we tried to load the assembly we got a null reference. This was fixed when we put the loader in the separate dll.

if anybody is having trouble and needs code please email me!!1

Thanks,