Private > Public | Section 7 Lecture 154

Instead of making AutoLoadNextLevel Public what we could do instead is make it private and write on top of the line write, [SerializeField]. What this does is, it displays your variable within the Unity Editor without the actual varaible being public, which is really useful.

1 Like

Privacy & Terms