Object is in layermask code example Example: Object is in layermask Unity layermask == (layermask | (1 << layer))