April 2017
Beginner to intermediate
376 pages
8h 4m
English
In Unity, when declaring class-scope variables, we need to declare an access modifier. The options available are private, public, or protected. If no access modifier is chosen, private is assumed. One of the main reasons to make variables in Unity public is to be able to access them in the Unity Inspector.
In C#, this means:
In Unity, this additionally means:
Read now
Unlock full access