Getting Started with Coding for Unity

This is a sticky for links to resources that will help new users to get started coding with Unity.
[Please NOTE! This thread is not intended as a support or scripting thread for help with specific coding issues. Please use the Support or Scripting sections for that.]
The first place to go, is the scripting topic in the Learn section of the Unity site:

Then, if you want more, here are some additional resources for learning C#:
C-Sharp Station: Tutorials
LearnCS.org - Interactive C# Tutorials
C# Fundamentals: Development for Absolute Beginners
C# for Beginners – Microsoft Virtual Academy
C# Yellow Book
Catlike Coding C# Tutorials

ARCHIVED LINKS BELOW (I have not vetted these, and they could be stale):

Archived resources for learning CS:
Visual C-Sharp Tutorials: Introduction to programming
C Sharp Fundamentals Development for Absolute Beginners
Catlikecoding: Unity Tutorials
Unify Wiki: C-Sharp Tutorial

Here are some resources for learning UnityScript (Unity’s “JavaScript”):
Unify Wiki: Programming
Unify Wiki: Head First into Unity with UnityScript
Newbie guide to Unity Javascript (long)

(UnityScript.com: What was a very good site for the absolute beginner learning UnityScript, but now only available thru the Internet Archives… Sadly many images and the pdf is missing.)

Here are some resources for learning language-independent concepts:
Which kind of array or collection should I use?

- This is not a thread to discuss the differences or advantages of one language over another. -

5 Likes

The language-indepenent concepts list is one I’m going to be keeping a close eye on - that first link is really useful!

You might want to add this to the links above :

It deals in AI development, something that every game dev will bump into at one point or another. And to avoid misconceptions, I am talking about AI, not Finite State Machine modules (like attacking, idling, fleeing, etc). People seem to confuse the two. This page deals in making the AI take strategic decisions and reach an outcome (like minmax Chess AI).

Good idea!

Thanks, Excellent tutorials!

Actually, there are so many resources (books, online tutorials, video courses, interactive tutoring) that I’m lost as to what the fastest way to absorb this (programming) knowledge is. If money is no issue, what’s the best/fastest way to get into Unity Scripting?

I have the same concern right now. Since all of these resources tend to overlap in terms of what they actually teach, I choose to devote the time to one course or book at a time until I really absorb everything. Then I’ll begin another book. It’s a little disheartening at times, like I just finished a joes to pros book on c#. But c# used in unity seems to use slightly different terms and logic. But it’s still very familiar in terms of syntax. So I definitely don’t regret reading that book, because now the main thing for me to get familiar with is the scripting reference for unity.

Thanks, Excellent tutorials!

BassO, Meta: There are two basic approaches - Applied and Theoretical. If you want an applied approach, I’d suggest running through as many Unity and 3rd Party tutorials and observe how the language is used. If you want the theoretical approach, I’d suggest books and tutorials about Object Oriented scripting and languages, language pattern and (probably easiest) a focus on C#.

TBH: I’d do some combination of both.

Hi Little Angel,

Do you mind if I point at my own C# Unity tutorial? It’s on the Asset Store (links in my signature below). It’s not free, but it is a pretty complete turn-based Tic-Tac-Toe game, which may be of interest to those more interested in turn-based games in Unity in general.

I believe a good tutorial should explain “what”, “how” and “why”, so I included a thorough 40-page PDF explaining what it does, how it works and why I wrote it the way I did.

New UnityScript/Unity’s JavaScript resource:

Introduction to UnityScript from Unityscript.com

Although this isn’t strictly code related, it’s math, and it should definitely come in handy when programming in any API or language. It deals with Matrix operations. Original post is here :

http://forum.unity3d.com/threads/144484-Behind-the-Scenes-Understanding-Transformation-Matrices?p=988735#post988735

Tutorials link is here :

http://ocw.mit.edu/courses/mathematics/18-06-linear-algebra-spring-2010/video-lectures/

This may be useful for my next game project :slight_smile:

Hi

I have recently made a great find for those who don’t know jack about C# and wishes to learn:

Lesson #1 First lesson in using C# in UNITY 3D. (8:17)

Lesson #2 Introduction to C# statements. (9:46)

Lesson #3 Introduction to C# variables. (7:55)

Lesson #4 C# Arithmetic Operators(12:12

Lesson #5 Arithmetic Formulas and concatenation.(8:57)

Lesson #6 Increment/Decrement operators (6:25)

Lesson #7 C# Assignment Operators (11:40)

Lesson #8 Local/Global Public/Private variables in C# (9:04)

Lesson #9 Floating Point variables (data types). (10:58)

Lesson #10 The GUI (12:42)

Lesson #11 UNITY3D C# GUI Math - Using the GUI to illustrate C# integer arithmetic. (5:35)

I hope this will other just as much as it helped me.

May I also request that these tutorials are are added to the sticky list

3 Likes

I’ll try to get a look at these, but in any case they’ll be here if not up on the first post!

Man these video tutorials are awesome.
C has always been my weak spot … long and tedious books have never helped me out.
I have a feeling video tutorials are the way for me to succeed.
Bookmarked.

I’d like to request my signature link gets posted here. Thank you!

Thanks for the heads up!

Thank You So Much For This Share! First Link VERY useful! I Had NO idea About The Code Used In Unity,

can someone tell me how to make a character move using arrow keys because i am a beginner:face_with_spiral_eyes: