Are 90% scripting in Javascript?

Hi all - I am new to Unity, it looks fantastic and just what I have been looking for these last couple years (i’ve worked on Ogre, Irrlicht, 3impact, etc - each of them requires too much coding just to get a core engine together)!

I read many threads about scripting choices. I cant tell though which languages people are using - are 90% of developers working in Javascript? Its always good to share code so I would like to dev is something that the majority are using. Its too bad that Boo is not out in front, i love python and the oop in Javascript is kinda lame.

Ah, super excited about discovering Unity!

I tend to use C# for the more complex projects and Javascript for the little ones :slight_smile:

Richard.

In Unity, all three scripting languages are compiled into the same .NET bytecode. So almost always there is no speed difference between them.

Javascript is “the most official” language in Unity (i.e. code examples in documentation are in javascript) just because often it lets you do the same as C# with less typing (implicit variable types, no need to write “class…”, less casting needed etc.). But yes, for somewhat more complex code C# “feels” more appropriate.

thanks for the hints - i am a developer by background and a python fan so Boo is attractive - but if most of the examples / shared code / etc come in javascript i suppose i could hold my nose and dev in javascript :wink:

from what i remember though javascript doesnt really have an object structure, does it?

i didnt hear any voices promoting boo so that must be used by a fringe radical corner of unity users!

ecma 2.0 javascript has an object structure and the javascript implementation we use in unity has the same.

Programming in javascript with Unity is certainly nicest, because it gets rid of all boilerplate code.

I prefer C#. I need to know the type of each thing I’m dealing with, otherwise I get lost.

This does mean I lose some of the automatic conversions/redirections that Unity has in Javascript, but I think it also helps me understand and fix certain errors faster.

I prefer using Boo and JavaScript. Now once IronPython comes out of Beta maybe we will get true Python :slight_smile:

I am the same. I also like the organization and readability that you get using C#. It seems to force you to plan and lay out your code better which helps with complex stuff.

-Jeremy

i know this thread is old… :slight_smile:

…but i just noticed that sharpdevelop can convert c# code to boo.

http://community.sharpdevelop.net/blogs/mattward/articles/FeatureTourCodeConversion.aspx

could be interesting. i have looked into boo a bit recently and it’s quite a nice language.