Tutorial by Examples

Unity layers are similar to tags as in that they can be used to define objects that should be interacted with or should behave in a certain manner, however, layers are mainly used with functions in the Physics class: Unity Documentation - Physics Layers are represented by an integer and can be pass...
The LayerMask structure is an interface that functions almost exactly like passing an integer to the function in question. However, its biggest benefit is allowing the user to select the layer in question from a drop-down menu in the inspector. using UnityEngine; class LayerMaskExample{ pub...

Page 1 of 1