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