how to compare layermask to collider unity code example Example: collider layer = to layermask unity layermask == (layermask | (1 << layer))