C# Tutorial for unity || int,float,string and bool || Part #2

Опубликовано: 01 Январь 2019
на канале: CG Time
236
2

Part 1
   • C# Tutorial for unity || int,float,st...  

In Unity's C#, int is a type. It is short for "integer", which means whole numbers. You use int to specify that you want your variable to contain only whole numbers.

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:

int : An integer (eg, 3).
Can be a whole number between -2147483648 and 2147483647

float : A fractional (floating point) number (eg, 3.25907).
Can be a number between roughly 1.5 x 10^45 to 3.4 10^38, in floating point format.

String : A sequence of characters (eg, "Hello User 6555")
(no specified maximum length, as far as I'm aware!)

boolean : A true/false value.
Can only contain either the value true or false.


Смотрите видео C# Tutorial for unity || int,float,string and bool || Part #2 онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь CG Time 01 Январь 2019, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 236 раз и оно понравилось 2 людям.