Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

UnityScript vs C#?

Discussion in 'Scripting' started by Aresak, Jul 10, 2014.

?

UnityScript or C#?

  1. C#

    15 vote(s)
    83.3%
  2. UnityScript

    3 vote(s)
    16.7%
Thread Status:
Not open for further replies.
  1. Aresak

    Aresak

    Joined:
    Dec 28, 2013
    Posts:
    13
    Hello,

    I´m wondering which of these to choose. I have more experiences with JavaScript so maybe I should try UnityScript.
    Or C#? Because in school we will learning C# and also.. Well everything :D

    So UnityScript or C#?
     
  2. Magiichan

    Magiichan

    Joined:
    Jan 5, 2014
    Posts:
    403
  3. Sharp-Development

    Sharp-Development

    Joined:
    Nov 14, 2013
    Posts:
    353
    Furthermore, no matter for which language you decide in the end, you should keep in mind that C# is an industry standart.
     
  4. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,491
    I personally would choose C#, just for the sake of native Visual Studio support.
     
  5. LightStriker

    LightStriker

    Joined:
    Aug 3, 2013
    Posts:
    2,716
    Loved the news that Microsoft bought the maker of the UnityVS plugin and will make it free. :)
     
    IvanAuda and Magiichan like this.
  6. exiguous

    exiguous

    Joined:
    Nov 21, 2010
    Posts:
    1,749
    Thats wrong, its a standard.

    this blog gives an overview over all the nice things you will miss when you choose US above C#. They may not be imperative and you will not use all of them right from the beginning but why cripple yourself with the feature-wise worse choice?

    Its also worth to note that it seems C# is compiled much faster by Unity (3 secs C# vs 10+ secs US). I have just read this and cannot confirm it since I avoid US for several reasons.
    And when you look for help/information in the internet you will hardly find anything about US since it is only used in Unity whereas you will find plenty of infos about C# (not only Unity related).
    Also note that most Assets in the Assetstore are in C# and it can sometimes be a hassle to let them communicate with US Scripts (compile time order). I don't say its impossible I just say it may get inconvenient.

    So if you want to make an objecte decision there is not really a choice for you.

    Do you have a link at hand?
     
  7. Sharp-Development

    Sharp-Development

    Joined:
    Nov 14, 2013
    Posts:
    353
    Grammar nazi much? :rolleyes:
     
    Magiichan likes this.
  8. LightStriker

    LightStriker

    Joined:
    Aug 3, 2013
    Posts:
    2,716
    IvanAuda likes this.
  9. exiguous

    exiguous

    Joined:
    Nov 21, 2010
    Posts:
    1,749
    Orthography. And not much, just a little.
    Seriously. It doesn't hurt to point people towards their mistakes. Maybe they learn something from it. And I remember a discussion recently where you argued with a Unity staff about closures and you were wrong. So it seems you are here to learn something. Why not correct this annoying mistake?

    Thanks. Good news.
     
  10. Sharp-Development

    Sharp-Development

    Joined:
    Nov 14, 2013
    Posts:
    353
    Infact, I wasnt wrong. My benchmark showed more accurate and correct results. Furthermore, he only posted an IL dump of value type allocations, nothing about closures at all. The point I've made wasnt about allocations but rather about JIT magic where fetched/allocated pointers of valuetypes might be stored by it incase of a closed method.

    Im not a native english speaker at all so mistakes happen. Tho, grammar mistakes do not lead to anything close to an assumption about knowledge or whatsoever.
    Acctually im a bit loughing atm, im not here to learn, im here to help people. Since I've started to post here there was like 1% I've "learned" at all, 99% was help I've given to other people.

    Not to sound arrogant now, theres not much I could really learn around here which I wouldnt know already.

    No offense.
     
  11. LightStriker

    LightStriker

    Joined:
    Aug 3, 2013
    Posts:
    2,716
    You could learn how to properly make an avatar that wouldn't show compression artifacts. :p

    Just kidding.
     
    IvanAuda likes this.
  12. Ian094

    Ian094

    Joined:
    Jun 20, 2013
    Posts:
    1,548
    I use both but I prefer JavaScript, I think the syntax is better :)

    C# isn't too bad once you get used to it and it's very worthwhile to learn it.
     
  13. zDemonhunter99

    zDemonhunter99

    Joined:
    Apr 23, 2014
    Posts:
    478
    You'd be a millionaire!

    I'd recommend C# over UnityScipt. It might be a pain to learn, but in the long run it will be worth it. Debugging is a breeze and it makes your code more readable.
    Also C# also has many other applications other than game development whereas UnityScript does not.

    It's upto you, really.
     
  14. Sharp-Development

    Sharp-Development

    Joined:
    Nov 14, 2013
    Posts:
    353
    Im not an artist. :p

    That sentence above was about programming btw. ;)
     
  15. Magiichan

    Magiichan

    Joined:
    Jan 5, 2014
    Posts:
    403
    LOL
    sorry for offtopic :c
     
  16. LightStriker

    LightStriker

    Joined:
    Aug 3, 2013
    Posts:
    2,716
    New knowledge is always good to take.
     
    IvanAuda likes this.
  17. Sharp-Development

    Sharp-Development

    Joined:
    Nov 14, 2013
    Posts:
    353
    Thats for sure.

     
  18. hippocoder

    hippocoder

    Digital Ape Moderator

    Joined:
    Apr 11, 2010
    Posts:
    29,723
    *Falls asleep on the lock button*

    Please use one of the many links to other threads about this subject above :)
     
Thread Status:
Not open for further replies.