O'Reilly logo

HoloLens Beginner’s Guide by Jason Odom

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Unity Property Attributes

When a variable is set to public, as opposed to private, in C#, with Unity it is exposed to the Inspector, which allows real-time changes. In most cases, this is great; it is exactly what we want to quickly create feedback.

There are cases though, for instance, using Singletons or creating static classes, in which we need variables that are to be set to public, but we do not want them to be changed in the editor. These are cases where other classes need to change the variables. Let's have a look at our Application Manager:

If you look at our Application Manager at the moment, it is an absolute mess. As you can see, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required