# Add a layer to a layerMask

> Add a new layer to a layerMask via script.

To add a layer to a layermask, use the [logical OR operator](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/operators/bitwise-and-shift-operators#logical-or-operator-) on the original layermask and the layer to add.

```lang-cs
originalLayerMask |= (1 << layerToAdd);
```

## Additional resources

* [Set a layermask](/engine/6000.7/manual/working-with-gameobjects/layers/and-layermasks/layermask-set.md)
* [Remove a layer from a layermask](/engine/6000.7/manual/working-with-gameobjects/layers/and-layermasks/layermask-remove.md)
