This video explains how you can use variables to store various data types such as string, bool, int, float, decimal, double, and Vector3 in C#, as well as how you can use references to hold connections to other components and classes in your scene.
XRTerra Links:
Programs and Courses: http://www.xrterra.com/programs
Newsletter Signup: https://www.xrterra.com/mailing-list-...
00:00 What are variables
00:59 C# is a strongly typed language
01:57 String
02:39 Boolean
03:12 Integer
03:27 Float, Decimal, Double
04:35 Vector3
05:48 References
06:40 Setting variables
08:29 Variable scope
10:51 Using References
11:57 Access modifiers
13:55 Assigning References in the Inspector
17:10 Naming Conventions
19:08 Setting properties on referenced components
21:07 Play mode considerations
22:13 Changing playmode tint
23:38 GetComponent
28:40 Namespaces
Instructor: Gregory Osborne