- Home /
Programming Language
Hi after reading C# in 10 days and now are understanding the language and have a good experience i want to know what will i do now. if i want to use C# in unity do i just need to learn unity keyword and mix the keywords in the language, or do i need to learn the whole unityscript. or do i need to learn another language like javascript. im little afraid of begin learning the whole javascript because its a very big language. { Public class Thanks // Kristian. }
I have never learnt JS and I use it all the time. The way it is used in Unity is so intuitive you don't need to know about it. I wonder if the whole language is like it is in Unity...
Answer by mpavlinsky · Mar 08, 2012 at 07:30 PM
You can get by without learning any JavaScript at all and I would recommend that. You should just learn the classes in the Unity framework as you need them in my opinion. The script reference is your friend.
Answer by hijinxbassist · Mar 08, 2012 at 07:35 PM
The way the code is used will be specific to the unity engine (it makes life tons easier than trying to put all these built in functions together yourself).
Unity reference page is where most of us unity coders live!
This is the place to start learning unity as it will give you examples of ways to use the code. It really isn't too tough as you can just look up the ref for what you are trying to accomplish.
http://unity3d.com/support/documentation/ScriptReference/
Hope this helps get you started in unity.
Answer by kristian97 · Mar 08, 2012 at 11:07 PM
Good ok so now i understand that there is some unity keywords i need to learn and know what they do and in the same time all i need to do is to mix both C# with the unity keywords to make a script. Example:
public string message = "welcome to the game"; //// this line is C#
void OnGui() // this too { GUILayout.Label(message); // but this is unity script.
The idea is that unity has prepared a whole set of classes and interfaces including the most general and useful functions and objects. What most Unity functions do , you could try to do it yourself, implementing your own functions, they just help you do everything faster. This is called Abstract Data Type (ADT), you don't know how it is done, you just know what it does and how to use it.
It's all C# really, you're just using classes that Unity has defined.
All the code you posted would work in a C# project in any other environment as long as you defined a class GUILayout with a public static function that took a string.
Your answer
![](https://koobas.hobune.stream/wayback/20220613064913im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers
What type of field can store any type of class c# 1 Answer
Math Doesnt Make Sense 1 Answer
Getting android device's IP 1 Answer