Hello again,
In addition to [this][1] question I have another,
but due to the complexity I thought I would split them up.
After writing some code using .NET's CodeDom and the compiler, I was able to load C# assemblies from files at runtime:
//Create provider
var provider:CodeDomProvider = new CodeDomProvider.CreateProvider("CSharp");
//Compile C# file at path, with params as compiler parameters
var results:CompilerResults = provider.CompileAssemblyFromFile(params, path);
//return the compiled assembly
return results.CompiledAssembly;
Now thats all good and working, but I was wondering whether I could use the same method to compile UnityScript files.
I have tried using `"UScript"`, `"JScript"` and `"UnityScript"`. Does the UnityScript compiler even integrate into CodeDom?
Thank you,
Benproductions1
[1]: http://answers.unity3d.com/questions/522236/limit-namespace-access-on-compiled-scripts.html
↧