Scripting: any .NET/Mono language (ie IronRuby) can be used?

Hi,

I’m an avid user of the Ruby language. As such, I refuse to use any other language if I can :slight_smile:

I was REALLY pleasantly surprised to see that Unity3D uses GNU Mono as a base for its scripting. Since IronRuby is a .NET/Mono implementation of Ruby…

Can I use IronRuby for Unity3D scripting? I don’t mind using Boo/whatever for small, simple, linear scripts, but if I have to write anything remotely complex (like my own classes), I’d rather write them in Ruby.

I know there are requests to include Ruby as an official scripting language, but that is not what I am asking for. What I’m asking is if I can manually compile my Ruby code with IronRuby and plop it somewhere so the classes/methods/whatever can be used while I’m inside the Unity3D environment.

Ruby is not supported and I doubt that DLR will work with it / Mono 1.2.5

For anything larger and complex I would use C#, neither boo nor JS actually.

Hi,

I know Ruby. I don’t know C#. The point of .NET was that all languages can interoperate seamlessly, wasn’t it?

However, IF I can find an implementation of Ruby for Mono 1.2.5… will I be able to compile and use my Ruby code in Unity3D?

If not… well, it’s ok, I believe in being lazy, and learning another set of languages is easier for me than creating a Unity3D clone that supports Ruby :slight_smile:

Try it and you will know it.

And yes the idea is that they are interoperable.
If you use a language that produces .NET 2 assemblies, you can plug those assemblies into unity and it will be present in the same form as the other 3 languages.

But you will obviously have to find out all yourself as it is no supported language and thus not documented.