April 2017
Beginner to intermediate
376 pages
8h 4m
English
The scope of a variable is the area or length of code that can be used. In a sense, scope is a variable's lifetime. There are two primary types of scope that we use with regularity in C#:
Code blocks are generally the means of defining a scope and are marked with curly braces {}:
public class ScopeExample: MonoBehavior { public int dododododo = ...Read now
Unlock full access