Lesson 43 – Understanding Properties

A Property is similar to a Field but with added functionality that executes whenever it’s being referenced. This has a variety of uses, which includes “gate-keeping” against undesireable values, localizing code that is only relevant to the property itself, as well as further limiting its accessibility from outside classes. Whether you’re accessing pre-existing Properties in the Unity API or creating your own, it’s important to understand how they work and why you would want to incorporate them into your own projects.

Members Only Content (Source Code, Quiz, Q&A)

This content is for Extended Support Package members only.
Log In Register