Beginner questions

Hey!
Unity looks really great!

I want to learn Unity in future and I have few noob questions:

  • Are there any feature advantages if I choose C# or it’s the same?

  • What about HTML5, if there will be some convertor in future will it works with C# or I will have to learn JavaScript?

  • Is there a way how to open a link in new window? Let’s say Unity Web Player will keep growing and one day it will be sponsored as often as Flash games - but noone likes how Unity games open links in the same window.

Thanks!

  1. C# has some advantages, but Unityscript also has some advantages, and so does Boo. Generally speaking though they all do the same thing, at the same speed.

  2. Unity doesn’t use Javascript. If there was an HTML5 exporter it’s unlikely the language would make any difference.

  3. A Google search for “Application.OpenURL new window” seems like it gets good results.

–Eric

Thanks a lot for your answers!

I never did anything with Unity but every time I saw game with outgoing links, it was opening in the same window.

I basicly just looked at first few pages of Unity 3.x Game Development Essentials - Game development with C# and Javascript

So I thought there is two options, C# and Javascript.

Well, it’s officially called “Javascript”, which is confusing, because it’s not really Javascript. You’ll frequently see it referred to as Unityscript because of that. It’s actually a lot closer to ActionScript 3.

–Eric

Aaah, good to know.

I know AS3, so I have new favorite :slight_smile:

Thanks!

To me C# is always preferred since:

  1. Strong type safety makes it less error prone.
  2. C#, IMO, has a stronger feature set (much stronger feature set).
  1. Unityscript is just as strongly-typed as C# (as long as you use #pragma strict, which is required for some platforms such as iOS anyway).

  2. There’s very little in C# that’s not available in Unityscript.

–Eric

Thanks for the other opinion.

I will try both ways and decide after that.

BTW does anyone have example of Unity game where the links opens in new window? I can’t find any :-/

One more thing Eric - I saw Unity game opening link in new window, but Chrome evaluated it as pop-up.