Search Unity

My question about Programing languajes

Discussion in 'Scripting' started by FrogGamer, Feb 6, 2015.

  1. FrogGamer

    FrogGamer

    Joined:
    Jan 24, 2015
    Posts:
    4
    how useful or important is the C# and Java for Unity to create Games?
     
  2. Rutenis

    Rutenis

    Joined:
    Aug 7, 2013
    Posts:
    297
    First of all there is no Java language in Unity, there is UnityJava. So you wont be able to use it outside Unity, just go and learn C#. Java may be easier to master, but thats just my opinion. :)
     
  3. Graham-Dunnett

    Graham-Dunnett

    Administrator

    Joined:
    Jun 2, 2009
    Posts:
    4,287
    No there isn't. There is Javascript. It's actually a Unity-authored language so is sometimes called UnityScript. The code that web developers write in Javascript for their websites is pretty different to the Javascript code that Unity customers will write.
     
  4. Strategos

    Strategos

    Joined:
    Aug 24, 2012
    Posts:
    255
    Go with C#
     
    elmar1028 likes this.
  5. Rutenis

    Rutenis

    Joined:
    Aug 7, 2013
    Posts:
    297
    I meant that JavaScript is diffrent then unity java?
     
    FrogGamer likes this.
  6. Graham-Dunnett

    Graham-Dunnett

    Administrator

    Joined:
    Jun 2, 2009
    Posts:
    4,287
    There isn't "unity java".
     
    FrogGamer likes this.
  7. randomperson42

    randomperson42

    Joined:
    Jun 29, 2013
    Posts:
    974
    Unity doesn't support Java, as Graham says. It supports C#, Javascript, and Boo. Most people use C# and some use Javascript. For that reason I'd say it's more important that you learn C#.
     
    FrogGamer likes this.
  8. Cpt Chuckles

    Cpt Chuckles

    Joined:
    Dec 31, 2012
    Posts:
    86
    C# is better than all other languages, which are as mere peasants in C#'s magnificent shadow
     
    FrogGamer likes this.
  9. KelsoMRK

    KelsoMRK

    Joined:
    Jul 18, 2010
    Posts:
    5,539
    Not useful at all. Just hook your brain up to the matrix and think real hard about the game you want to make. You'll also learn Kung Fu in the process.
     
  10. cmcpasserby

    cmcpasserby

    Joined:
    Jul 18, 2014
    Posts:
    315
    Let's kill some of this confusion, Java and JavaScript are completely different and unrelated. Than Unity's JavaScript is also different from JavaScripting used for web development.

    I would recommend people work with C# since I persnally feel it is a better language than JavaScript and is a transferable skill that is useful elsewhere unlike JavaScript in unity. Though you can use js if you feel its less of a learning curve.
     
    FrogGamer and BenZed like this.
  11. FrogGamer

    FrogGamer

    Joined:
    Jan 24, 2015
    Posts:
    4
    What math operations use the people in C# and JavaScript on Unity ?
     
  12. cmcpasserby

    cmcpasserby

    Joined:
    Jul 18, 2014
    Posts:
    315
    That sentence makes no sense, but both languages got access to all the same math operations and both have access to all the same .net libs.
     
    honprovet likes this.
  13. FrogGamer

    FrogGamer

    Joined:
    Jan 24, 2015
    Posts:
    4
    I dont know what sentence do you mean, is about my gramma? because im a person who still are learning english because I live in mexico and I go to the college to keel learning this languaje.
     
  14. elmar1028

    elmar1028

    Joined:
    Nov 21, 2013
    Posts:
    2,359
    You got it all confused. :p Unityscript has identical syntax from Javascript but not from Java (they're different languages)
     
    Rutenis likes this.
  15. KelsoMRK

    KelsoMRK

    Joined:
    Jul 18, 2010
    Posts:
    5,539
    That's not true. "UnityScript" syntax is more akin to ActionScript 3.
     
    cmcpasserby likes this.
  16. The-Little-Guy

    The-Little-Guy

    Joined:
    Aug 1, 2012
    Posts:
    297
    UnityScript and JavaScript are nothing alike, their syntax is completely different. There is syntax that can be done in JavaScript that can't be done in UnityScript and vise versa.

    If you want to choose a language go with C#. From my understanding it is more powerful that UnityScript and Boo. You are also able to look most things up on the microsoft developer site if you have issues. Also C# is the 3rd most tagged item on stackoverflow (Behind Java and JavaScript (both non-unity)) so there are lots of people who can help you. It is much harder to find help on UnityScript and Boo.
     
  17. elmar1028

    elmar1028

    Joined:
    Nov 21, 2013
    Posts:
    2,359
    Whaaa! I learned JavaScript first, which allowed me to program in Unity.

    And it clearly says JavaScript when I create it and it's file format is .js
     
  18. SteveJ

    SteveJ

    Joined:
    Mar 26, 2010
    Posts:
    3,085
    So what about JavaC#Script? That's another one it supports, right?
     
  19. elmar1028

    elmar1028

    Joined:
    Nov 21, 2013
    Posts:
    2,359
    Yeah. Unity supports C#
     
  20. kdubnz

    kdubnz

    Joined:
    Apr 19, 2014
    Posts:
    177
    It really burns me when people don't check facts before posting guesses and assumptions as assertions

    from : http://docs.unity3d.com/Manual/CreatingAndUsingScripts.html

    "modelled after JavaScript" is NOT the same as "is JavaScript"
     
  21. KelsoMRK

    KelsoMRK

    Joined:
    Jul 18, 2010
    Posts:
    5,539
    So you're just going by what Unity chose to name their menu entry and file extension?

    That doesn't mean the syntax is identical. It isn't. Nor could it be. ECMAScript (web) JavaScript is dynamically typed and isn't even considered representative of OOP (despite many web developers best efforts). ActionScript 3 is based on a later ECMAScript spec that was more strongly typed.

    I'll prove it - this will never work in Unity
    Code (csharp):
    1.  
    2. var f = function(x, y) { return x + y; };
    3. var xy = f(1, 2);
    4.  
    Just like this will never work if you put it on a web page
    Code (csharp):
    1.  
    2. var aList = new List.<string>();
    3.  
     
  22. Strategos

    Strategos

    Joined:
    Aug 24, 2012
    Posts:
    255
    This thread is fun! :p
     
  23. FrogGamer

    FrogGamer

    Joined:
    Jan 24, 2015
    Posts:
    4
    I have also other question, I can creat 3d and 2d games without Programing ?
     
  24. kdubnz

    kdubnz

    Joined:
    Apr 19, 2014
    Posts:
    177
  25. elmar1028

    elmar1028

    Joined:
    Nov 21, 2013
    Posts:
    2,359
    If money is not an issue, buy Playmaker from AssetStore and learn how to use it.

    Otherwise, get GameMaker Studio or Scratch
     
  26. Deleted User

    Deleted User

    Guest

    My suggestion: learn programming.
    Making a game without programming is really going to limit the freedom you have to make games.
     
    FrogGamer likes this.
  27. honprovet

    honprovet

    Joined:
    Mar 4, 2014
    Posts:
    23
    Also why would you want to make games without programming? Thats the fun part.

    Or you can just go modelling 3d assets. Google Blender.
     
  28. Baste

    Baste

    Joined:
    Jan 24, 2013
    Posts:
    6,336
    No.
     
    honprovet likes this.