For example, 3 is an integer. 3.25 is not an integer.
When programming, your variables generally have a specific type, and you should select the appropriate type according to what you want to use the variable for. Four of the most common types are:
There are many more types that you can use for variables, including other numeric types for more specific situations, and other more complex types such as structs and classes which you will need to learn about in order to make progress using Unity.
Good luck :)
int just mean integer, which means number
var Number : int = 4;
just means that the Number var only holds a number variable.
A variable can hold anything. Int just means that the variable is only limited to numbers
answered Nov 17, 2010 at 04:28 PM
I thought you are referring to "int?".
just in case it means nullable int.
it refers to int that can be stored with a null.
answered Jul 10 at 05:19 PM