Learn C # while playing Unity - Part 3.1. Type Basics - Numeric + Unity Special Types
This is the third part in a series of lessons Learn C # with Unity. In the last part, we analyzed the syntax of the language, and today we will analyze the basics of numeric types. As a bonus, at the end I'll talk about the special types of Unity that work specifically with numbers.
The table and the diagram that I show in this video, I will publish separately in my publics in VK and telegrams. Search for # materialForPart31ofRaybel
The task!
First, create 3 different objects in the scene (cube, sphere, etc.) and position them as you want, each rotate and scale to your liking.
Second, write a script that will output all the transform information for each object.
And third - do the conversion of all received data to all integer types.
Load the script from the link: https://drive.google.com/drive/folder...
For me to check it, write the name of your script in the comments to this video. Otherwise, I won't open it.
If there is enough work, make a review.
Time codes:
00:00 Intro
00:10 Introduction
00:31 What is an instance?
01:08 Type options
01:36 Predefined Types
01:56 Table of predefined types
02:17 Numeric type table
03:26 Numeric Literals and Suffixes
04:17 Number suffixes
05:40 When is it explicit and when is it implicit?
05:56 Transformations - Part 1
06:40 Transformations - part 2
06:54 Transformations - part 3
07:18 Topic for next lesson
07:36 Unity Special Types
09:43 Task
10:14 Would you like to test your script?
For communication:
Telegram: @raybelgames
VK: https://www.vk.com/raybelgames
E-mail: [email protected]
YouTube: Raybel - Synergy CG
Support:
Patreon - / raybel
VK - https://www.vk.com/raybelgames
#Unity #CSharp #Programming