Scripting Unity with VB.NET instead of C#.NET

Hi,

Is it possible to use Visual Basic .NET to write scripts for Unity instead of C#.NET or is C# the only .NET language supported?

Thanks,
Chris

No, only c#, Javascript and Boo.

You can write your VB.net code in (for example) Visual Studio Express for Desktop and compile it to DLL and import it into Unity. This may require the Pro version…not sure about that point now. The catch is that within Unity you’ll not be able to do inline debugging, editing, etc. and your code needs to be Mono compatible if you’re deploying to any platform other than Windows. Your public classes and all their public members will show up in Unity Editor.

The exclusion of VB.net by the Unity team is IMHO a mistake that I hope they one day correct. There’s no merit in arguments of “too many languages” or some language is “better”. One can write elegant and crappy code in any language. Given that Mono supports VB.net alongside C#, all that’s really needed in Unity is the correct invocation of the compiler, similar to what they do for C#.