Introduction to Scripting in Unity
In this Unity tutorial, we'll discuss the major foundations of scripting with Javascript in Unity. Software required: Unity 3.4.
What you'll learn
In this Unity tutorial, we'll discuss the major foundations of scripting with Javascript in Unity. Then we will take what we've learned and apply it to a mini project. We'll look at several of the terms and techniques that are found when scripting in Unity, such as creating and manipulating variables, understanding the different types of operators, and how we can create instructions for our game objects using functions. We'll also jump into creating logic with conditional statements, and loops. We'll even learn how to use basic arrays. Finally, we'll take what we've learned and apply it to creating a movement and animation script. Software required: Unity 3.4.
Table of contents
- Learning Some Basic Terms 11m
- Creating and Manipulating Variables 12m
- Working with Operators 10m
- Working with Comparison and Logical Operators 12m
- Creating Logic with 'If' Statements 10m
- Creating Switch Statements 8m
- Creating Custom Functions 14m
- Working with Loops 12m
- Understanding Arrays 14m
- Project: Basic Move Script 13m
- Project: Refining the Movement Script 9m
- Project: Creating the Jump Function 11m
- Project: Refining the Jump Function 10m
- Project: Finishing the Jump Function 10m
- Project: Beginning the Advanced Move Script 11m
- Project: Creating the Advanced Move Script 13m
- Project: Creating Gravity 7m
- Project: Scripting Basic Animations 14m