x


Does a plugin work independent of MONO framework?

I have a C# code that works perfectly when compiled in visual studio. However it contains some .NET code that is not supported by MONO framework. If I add this code as a plugin to Unity, will it work?

Also what is the difference between adding a dll of that file to the working folder instead of pluging it in?

more ▼

asked Mar 11 '10 at 12:27 AM

varun gravatar image

varun
26 1 1 2

(comments are locked)
10|3000 characters needed characters left

2 answers: sort voted first

A .Net DLL isn't the same as a normal native code library. Your .Net DLL is a big pile of .Net opcodes and is expecting certain libraries to be available in your GAC (Global Assembly Cache).

Long answer long... no, the DLL will not work if it requires things that are available in .Net but not in Unity's version of Mono. If you really wanna try your hacking hand at things, you can copy your referenced .Net assemblies into the Mono.framework that's in your Unity install.

more ▼

answered Mar 11 '10 at 06:53 PM

Mortoc gravatar image

Mortoc
915 2 6 14

(comments are locked)
10|3000 characters needed characters left

it will not work. plugins must be mono supported assemblies or native code libraries. the only way to use .net is to write c++ dlls that use .net as a com component or interupt with .net code themselves.

more ▼

answered Apr 08 '10 at 07:45 PM

Ashkan_gc gravatar image

Ashkan_gc
9k 33 56 117

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x392
x231
x180
x11

asked: Mar 11 '10 at 12:27 AM

Seen: 1875 times

Last Updated: Mar 11 '10 at 12:27 AM