Game Development Reference
In-Depth Information
Figure 5-43. The more specific collision report
Using Tags
Unity has a way of marking, or “tagging,” gameObjects so you can filter results from events like
collisions. If you look at the top left of the Inspector, just below the name, with an object from the
Hierarchy selected, you will see a property called Tag.
1.
Select the Walkway, and locate the Tag label at the top of the Inspector.
2.
Click the arrows next to Untagged, and select Add Tag….
3.
Type the name of your new tag, Ignore , in Element 0.
As soon as you start typing, a new element is added automatically (Figure 5-44 ).
Figure 5-44. The newly created tab, Ignore
4.
Select each of the walkway objects and the Raised Bed, and select Ignore for
each from the Tag drop-down menu.
5.
Activate the Cube that should be blocking the Gateway. If it's not blocking
the Gateway, move it into place (Figure 5-45 ).
 
Search WWH ::




Custom Search