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

Tags and Layers

Tags are systems that allow us, as developers, to categorize objects in a scene. When situations arise where we need a reference to objects of a particular tag, we can use commands such as the following:

GameObject.FindObjectsWithTag("SomeTag");

This makes it really easy to locate objects of certain types.

If you look directly under the name of the object in the Inspector, you will see the dropdown for Tag.

We have two Tags currently in our project, and we need to add three more. It is worth noting that while the order is more important for Layers than Tags, in my experience, it can matter at times.

Layers allow for easy filtering. With Layers, if you need the camera to ignore certain objects or need your lights to only ...

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