Watch this video in context on Unity Learn:
https://learn.unity.com/tutorial/creating-properties

Properties allow you to access the member variables of a class in code that exists outside of the class. Furthermore, this access has a greater level of security and control then public variables could allow. In this video, you will learn how to create properties in a class and use them externally.

Leave a Reply

Your email address will not be published. Required fields are marked *