Whats the best way to learn how to script in unity3d?

Hi,

Im a moderate scripter but not the best.
I was wondering how all the experts learned?

Was it from reading a book, lots of video tutorials ect.

  • Colin

This is the video bring me to Unity scripting.
and after the “worm game” is done, I find everything scripting here :

and after few weeks , this is my first own game:
http://forum.unity3d.com/threads/82356-Super-Miner-v-1.0-Relese-!
not very well but it shows that I can script now.

i took that whole thing.

that’s what made me moderate.

I still look through the scripting reference. i just don’t know how to put things together

The best way is to just learn A language, whatever you feel comfortable with, as long as it’s object-oriented. In my case, I took a class called Principles of Object Oriented Programming at school, where we learned Python.
The class covered everything from syntax to classes and that was it. Everything else I learned by experimenting in JS in unity and making basic functionality and dissecting other people’s scripts. The unity wiki is a great place for that - http://www.unifycommunity.com/

Eventually, I ran into some of the limitations (or cons) of JS and moved on to translating my libraries of scripts into C#.

I learned with http://www.amazon.com/Python-Programming-Absolute-Beginner-Michael/dp/1592000738
It’s a fairly decent book. It doesn’t teach you the best practices (some of them are quite bad), but it makes OOP and Python very easy to understand.

Another reason why I keep bringing up python is because it is an interpreted language, so you don’t have to compile it to test, you can just get an interpreter like IDLE and test code in the CLI.

Even though Python (and Boo to an extent) are some of the more user-friendly languages, I would still say start with JavaScript using #pramga-stric in your code to force you to deal with data types, if you just want to start in Unity right off the bat.