September 2013
Beginner
292 pages
6h 19m
English
Every variable we want to use in a script must be declared in a statement. What does that mean? Well, before Unity can use a variable; we have to tell Unity about it first. Ok then, what are we supposed to tell Unity about the variable?
There are only three absolute requirements for declaring a variable and they are as follows:
The following is the syntax we use for declaring a variable:
typeOfData nameOfTheVariable;
Let's use one of the
LearningScript variables as an example; the following is how to declare a variable with the bare minimum requirements:
int ...