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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

does unity support c family variant: C?

Discussion in 'Scripting' started by AaronPalayoor, Apr 24, 2020.

  1. AaronPalayoor

    AaronPalayoor

    Joined:
    Apr 24, 2020
    Posts:
    2
    hello, i just mastered the C programming language and was looking forward also to start making unity game. But i had one doubt: Does Unity support C? Pls respond in clear and simple english and just jump straight to the point. Thanks
     
  2. Yoreki

    Yoreki

    Joined:
    Apr 10, 2019
    Posts:
    2,590
    The languages are quite similar, so a lot of things you write in C will be understood by a C# compiler. Get a bit into object oriented programming and you should be fine. If you truly 'mastered' C, then you should be able to write C# (or most other similar, non-functional languages) in a manner of hours or at max days. Why not simply look into C# a bit?
     
    matkoniecz likes this.
  3. hedgeh0g

    hedgeh0g

    Joined:
    Jul 18, 2014
    Posts:
    102
    In Unity you must use C#. Not C. You should get more into object oriented programming, but already knowing C is a great starting point.
     
    matkoniecz likes this.
  4. AaronPalayoor

    AaronPalayoor

    Joined:
    Apr 24, 2020
    Posts:
    2
    thanks all for your help. i will look more into object oriented programming. Thanks.
     
  5. hippocoder

    hippocoder

    Digital Ape Moderator

    Joined:
    Apr 11, 2010
    Posts:
    29,723
    You should be able to pick up C# pretty much from looking at any Unity learning examples if you know C already, since C# is based off C's syntax, but with a lot more helper code and a lot less boilerplate.

    I bounced from C++ to javascript then C# without any issues, I think you'll be fine if you just dig in and start coding right away. Visual studio will guide you if you use it.