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