CollisionEnter2D.layerMaskProperty in CollisionEnter2DDeclarationpublic LayerMask layerMaskDescriptionThe layers that this object can collide with.